增加LLM 后端服务API配置信息

This commit is contained in:
zhangtao 2024-12-29 17:17:36 +08:00
parent c77394fb8f
commit 4cbcacfd1f
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package cn.iocoder.yudao.module.llm.framework.backend.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotNull;
import java.time.Duration;
@ConfigurationProperties(prefix = "llm.backend")
@Validated
@Data
public class LLMBackendProperties {
/**
* 过期时间
*/
@NotNull(message = "RAG健康检查API")
private Duration ragHealth;
}

View File

@ -243,6 +243,11 @@ justauth:
prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
llm:
backend:
# 健康检查
rag_health: http://localhost:8123/health
--- #################### iot相关配置 TODO 芋艿:再瞅瞅 ####################
iot:
emq: