Class SpringAICustomConfig

java.lang.Object
com.bytedesk.ai.springai.providers.custom.SpringAICustomConfig

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

    • baseUrl

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

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

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

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

    • SpringAICustomConfig

      public SpringAICustomConfig()
  • Method Details

    • customApi

      @Bean("customApi") org.springframework.ai.openai.api.OpenAiApi customApi()
    • customChatOptions

      @Bean("customChatOptions") org.springframework.ai.openai.OpenAiChatOptions customChatOptions()
    • customChatModel

      @Bean("customChatModel") org.springframework.ai.openai.OpenAiChatModel customChatModel()
    • customChatClient

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