Class DeepSeekChatAutoConfiguration

java.lang.Object
org.springframework.ai.model.deepseek.autoconfigure.DeepSeekChatAutoConfiguration

@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class,SpringAiRetryAutoConfiguration.class,ToolCallingAutoConfiguration.class}) @ConditionalOnClass(DeepSeekApi.class) @EnableConfigurationProperties({DeepSeekConnectionProperties.class,DeepSeekChatProperties.class}) @ConditionalOnProperty(name="spring.ai.model.chat", havingValue="deepseek", matchIfMissing=true) public class DeepSeekChatAutoConfiguration extends Object
Auto-configuration for DeepSeek Chat Model.
Author:
Geng Rong, Hyunsang Han
  • Constructor Details

    • DeepSeekChatAutoConfiguration

      public DeepSeekChatAutoConfiguration()
  • Method Details

    • deepSeekChatModel

      @Bean @ConditionalOnMissingBean public DeepSeekChatModel deepSeekChatModel(DeepSeekConnectionProperties commonProperties, DeepSeekChatProperties chatProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, ToolCallingManager toolCallingManager, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.web.client.ResponseErrorHandler responseErrorHandler, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<ChatModelObservationConvention> observationConvention, org.springframework.beans.factory.ObjectProvider<ToolExecutionEligibilityPredicate> deepseekToolExecutionEligibilityPredicate)