Class MaxkbConfig
java.lang.Object
com.bytedesk.ai.springai.providers.maxkb.MaxkbConfig
@Configuration
@ConfigurationProperties(prefix="bytedesk.maxkb")
@ConditionalOnProperty(name="bytedesk.maxkb.enabled",
havingValue="true",
matchIfMissing=false)
public class MaxkbConfig
extends Object
MaxKB 配置类
https://maxkb.cn/docs/v1/dev_manual/APIKey_chat/#1-openai-api
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
MaxKB API 密钥 从 MaxKB 控制台获取,格式:application-xxxxxxxxf00e21a7530d1177c20967private String
MaxKB API 基础地址 例如:https://maxkb.fit2cloud.comprivate Integer
连接超时时间(毫秒)private Boolean
是否启用调试模式private String
默认模型名称private Boolean
默认是否使用流式响应private boolean
是否启用 MaxKB 集成private Integer
连接保持时间(秒)private Integer
连接池最大连接数private Integer
连接池最大空闲连接数private Integer
最大重试次数private Integer
读取超时时间(毫秒)private Integer
请求超时时间(毫秒)private Integer
写入超时时间(毫秒) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enabled
private boolean enabled是否启用 MaxKB 集成 -
apiUrl
MaxKB API 基础地址 例如:https://maxkb.fit2cloud.com -
apiKey
MaxKB API 密钥 从 MaxKB 控制台获取,格式:application-xxxxxxxxf00e21a7530d1177c20967 -
defaultModel
默认模型名称 -
defaultStream
默认是否使用流式响应 -
timeout
请求超时时间(毫秒) -
maxRetries
最大重试次数 -
debugEnabled
是否启用调试模式 -
maxConnections
连接池最大连接数 -
maxIdleConnections
连接池最大空闲连接数 -
keepAliveDuration
连接保持时间(秒) -
readTimeout
读取超时时间(毫秒) -
writeTimeout
写入超时时间(毫秒) -
connectTimeout
连接超时时间(毫秒)
-
-
Constructor Details
-
MaxkbConfig
public MaxkbConfig()
-