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 Details

    • enabled

      private boolean enabled
      是否启用 MaxKB 集成
    • apiUrl

      private String apiUrl
      MaxKB API 基础地址 例如:https://maxkb.fit2cloud.com
    • apiKey

      private String apiKey
      MaxKB API 密钥 从 MaxKB 控制台获取,格式:application-xxxxxxxxf00e21a7530d1177c20967
    • defaultModel

      private String defaultModel
      默认模型名称
    • defaultStream

      private Boolean defaultStream
      默认是否使用流式响应
    • timeout

      private Integer timeout
      请求超时时间(毫秒)
    • maxRetries

      private Integer maxRetries
      最大重试次数
    • debugEnabled

      private Boolean debugEnabled
      是否启用调试模式
    • maxConnections

      private Integer maxConnections
      连接池最大连接数
    • maxIdleConnections

      private Integer maxIdleConnections
      连接池最大空闲连接数
    • keepAliveDuration

      private Integer keepAliveDuration
      连接保持时间(秒)
    • readTimeout

      private Integer readTimeout
      读取超时时间(毫秒)
    • writeTimeout

      private Integer writeTimeout
      写入超时时间(毫秒)
    • connectTimeout

      private Integer connectTimeout
      连接超时时间(毫秒)
  • Constructor Details

    • MaxkbConfig

      public MaxkbConfig()