Class SpringAIGiteeConfig

java.lang.Object
com.bytedesk.ai.springai.gitee.SpringAIGiteeConfig

@Configuration @ConditionalOnProperty(name="spring.ai.gitee.chat.enabled", havingValue="true", matchIfMissing=false) public class SpringAIGiteeConfig extends Object
  • Field Details

    • baseUrl

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

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

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

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

    • SpringAIGiteeConfig

      public SpringAIGiteeConfig()
  • Method Details

    • giteeApi

      @Bean("giteeApi") org.springframework.ai.openai.api.OpenAiApi giteeApi()
    • giteeChatOptions

      @Bean("giteeChatOptions") org.springframework.ai.openai.OpenAiChatOptions giteeChatOptions()
    • giteeChatModel

      @Bean("giteeChatModel") org.springframework.ai.openai.OpenAiChatModel giteeChatModel()
    • giteeChatClient

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