Class DeepSeekChatAutoConfiguration

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

@AutoConfiguration(after={org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration.class,org.springframework.boot.webclient.autoconfigure.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, Yanming Zhou
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.beans.factory.ObjectProvider<org.springframework.core.retry.RetryTemplate> retryTemplate, org.springframework.beans.factory.ObjectProvider<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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.beans.factory.ObjectProvider<org.springframework.core.retry.RetryTemplate> retryTemplate, org.springframework.beans.factory.ObjectProvider<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)