Class SpringAIDashscopeChatConfig

java.lang.Object
com.bytedesk.ai.springai.providers.dashscope.SpringAIDashscopeChatConfig

@Configuration @ConditionalOnProperty(prefix="spring.ai.dashscope.chat", name="enabled", havingValue="true", matchIfMissing=false) public class SpringAIDashscopeChatConfig extends Object
阿里云 Dashscope 聊天配置
  • Field Details

    • baseUrl

      @Value("${spring.ai.dashscope.base-url:https://dashscope.aliyuncs.com}") private String baseUrl
    • apiKey

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

      @Value("${spring.ai.dashscope.chat.options.model:qwen-max}") private String model
    • temperature

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

    • SpringAIDashscopeChatConfig

      public SpringAIDashscopeChatConfig()
  • Method Details

    • bytedeskDashscopeApi

      @Bean("bytedeskDashscopeApi") com.alibaba.cloud.ai.dashscope.api.DashScopeApi bytedeskDashscopeApi()
    • bytedeskDashscopeChatOptions

      @Bean("bytedeskDashscopeChatOptions") com.alibaba.cloud.ai.dashscope.chat.DashScopeChatOptions bytedeskDashscopeChatOptions()
    • bytedeskDashscopeChatModel

      @Bean("bytedeskDashscopeChatModel") org.springframework.ai.chat.model.ChatModel bytedeskDashscopeChatModel()
    • bytedeskDashscopeChatClient

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