增加LLM 后端服务API配置信息
This commit is contained in:
parent
9bcfe94485
commit
022f86ae54
@ -0,0 +1,22 @@
|
||||
package cn.iocoder.yudao.module.llm.controller.admin;
|
||||
|
||||
import cn.iocoder.yudao.module.llm.framework.backend.config.LLMBackendProperties;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/mp/open/")
|
||||
@Validated
|
||||
public class GetBackendConfig {
|
||||
|
||||
@Resource
|
||||
private LLMBackendProperties llmBackendProperties;
|
||||
|
||||
@RequestMapping("getBackendConfig")
|
||||
public String getBackendConfig() {
|
||||
return llmBackendProperties.getRagHealth();
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.iocoder.yudao.module.llm.framework.backend.config;
|
||||
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 短信配置类,包括短信客户端、短信验证码两部分
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(LLMBackendProperties.class)
|
||||
public class LLMBackendConfiguration {
|
||||
|
||||
|
||||
}
|
@ -235,8 +235,8 @@ yudao:
|
||||
topic: ${spring.application.name}-websocket # 消息发送的 Kafka Topic
|
||||
consumer-group: ${spring.application.name}-websocket-consumer # 消息发送的 Kafka Consumer Group
|
||||
swagger:
|
||||
title: 芋道快速开发平台
|
||||
description: 提供管理后台、用户 App 的所有功能
|
||||
title: 教学辅助系统
|
||||
description: 大模型教学辅助系统
|
||||
version: ${yudao.info.version}
|
||||
url: ${yudao.web.admin-ui.url}
|
||||
email: xingyu4j@vip.qq.com
|
||||
|
Loading…
x
Reference in New Issue
Block a user