Class SpringAIDashscopeConfig

java.lang.Object
com.bytedesk.ai.springai.dashscope.SpringAIDashscopeConfig

@Configuration @ConditionalOnProperty(name="spring.ai.dashscope.chat.enabled", havingValue="true") public class SpringAIDashscopeConfig extends Object
Spring AI Alibaba https://java2ai.com/docs/dev/get-started/ https://github.com/alibaba/spring-ai-alibaba https://java2ai.com/docs/dev/tutorials/basics/chat-client/?spm=4347728f.63599dc2.0.0.8c026e97YbEM8P Examples: https://github.com/springaialibaba/spring-ai-alibaba-examples 阿里云百炼大模型获取api key: https://bailian.console.aliyun.com/?apiKey=1#/api-key 阿里云百炼大模型模型列表: https://bailian.console.aliyun.com/?spm=a2c4g.11186623.0.0.11c67980m5X2VR#/model-market
  • Field Details

    • DEFAULT_PROMPT

      private static final String DEFAULT_PROMPT
      See Also:
    • dashScopeApiKey

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

      @Value("${spring.ai.dashscope.chat.options.model:deepseek-r1}") private String dashScopeChatOptionsModel
    • dashScopeChatOptionsTemperature

      @Value("${spring.ai.dashscope.chat.options.temperature:0.7}") private double dashScopeChatOptionsTemperature
    • dashScopeChatOptionsTopP

      @Value("${spring.ai.dashscope.chat.options.topP:3}") private double dashScopeChatOptionsTopP
  • Constructor Details

    • SpringAIDashscopeConfig

      public SpringAIDashscopeConfig()
  • Method Details

    • bytedeskDashScopeApi

      @Bean("bytedeskDashScopeApi") @ConditionalOnProperty(name="spring.ai.dashscope.chat.enabled", havingValue="true") com.alibaba.cloud.ai.dashscope.api.DashScopeApi bytedeskDashScopeApi()
    • bytedeskDashScopeChatClientBuilder

      @Bean("bytedeskDashScopeChatClientBuilder") @ConditionalOnProperty(name="spring.ai.dashscope.chat.enabled", havingValue="true") org.springframework.ai.chat.client.ChatClient.Builder bytedeskDashScopeChatClientBuilder()
    • bytedeskDashScopeChatOptions

      @Bean("bytedeskDashScopeChatOptions") @ConditionalOnProperty(name="spring.ai.dashscope.chat.enabled", havingValue="true") com.alibaba.cloud.ai.dashscope.chat.DashScopeChatOptions bytedeskDashScopeChatOptions()
    • bytedeskDashScopeChatClient

      @Bean("bytedeskDashScopeChatClient") @ConditionalOnProperty(name="spring.ai.dashscope.chat.enabled", havingValue="true") org.springframework.ai.chat.client.ChatClient bytedeskDashScopeChatClient()
    • bytedeskDashScopeChatModel

      @Bean("bytedeskDashScopeChatModel") @ConditionalOnProperty(name="spring.ai.dashscope.chat.enabled", havingValue="true") com.alibaba.cloud.ai.dashscope.chat.DashScopeChatModel bytedeskDashScopeChatModel()
    • bytedeskDashScopeAudioTranscriptionApi

      @Bean("bytedeskDashScopeAudioTranscriptionApi") @ConditionalOnProperty(name="spring.ai.dashscope.audio.transcription.enabled", havingValue="true") com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi bytedeskDashScopeAudioTranscriptionApi()
    • bytedeskDashScopeAudioTranscriptionModel

      @Bean("bytedeskDashScopeAudioTranscriptionModel") @ConditionalOnProperty(name="spring.ai.dashscope.audio.transcription.enabled", havingValue="true") com.alibaba.cloud.ai.dashscope.audio.DashScopeAudioTranscriptionModel bytedeskDashScopeAudioTranscriptionModel()
    • bytedeskDashScopeSpeechSynthesisApi

      @Bean("bytedeskDashScopeSpeechSynthesisApi") @ConditionalOnProperty(name="spring.ai.dashscope.audio.synthesis.enabled", havingValue="true") com.alibaba.cloud.ai.dashscope.api.DashScopeSpeechSynthesisApi bytedeskDashScopeSpeechSynthesisApi()
    • bytedeskDashScopeSpeechSynthesisModel

      @Bean("bytedeskDashScopeSpeechSynthesisModel") @ConditionalOnProperty(name="spring.ai.dashscope.audio.synthesis.enabled", havingValue="true") com.alibaba.cloud.ai.dashscope.audio.DashScopeSpeechSynthesisModel bytedeskDashScopeSpeechSynthesisModel()