Class SpringAITencentConfig

java.lang.Object
com.bytedesk.ai.springai.providers.tencent.SpringAITencentConfig

@Configuration @ConditionalOnProperty(name="spring.ai.tencent.chat.enabled", havingValue="true", matchIfMissing=false) public class SpringAITencentConfig extends Object
腾讯混元大模型配置 https://console.cloud.tencent.com/hunyuan/start# https://cloud.tencent.com/document/product/1729/111007
  • Field Details

    • baseUrl

      @Value("${spring.ai.tencent.base-url:https://api.hunyuan.cloud.tencent.com}") private String baseUrl
    • apiKey

      @Value("${spring.ai.tencent.api-key:sk-xxx}") private String apiKey
    • model

      @Value("${spring.ai.tencent.chat.options.model:hunyuan-t1-latest}") private String model
    • temperature

      @Value("${spring.ai.tencent.chat.options.temperature:0.7}") private Double temperature
  • Constructor Details

    • SpringAITencentConfig

      public SpringAITencentConfig()
  • Method Details

    • tencentApi

      @Bean("tencentApi") org.springframework.ai.openai.api.OpenAiApi tencentApi()
    • tencentChatOptions

      @Bean("tencentChatOptions") org.springframework.ai.openai.OpenAiChatOptions tencentChatOptions()
    • tencentChatModel

      @Bean("tencentChatModel") org.springframework.ai.openai.OpenAiChatModel tencentChatModel()
    • tencentChatClient

      @Bean("tencentChatClient") org.springframework.ai.chat.client.ChatClient tencentChatClient()