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,org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.class,org.springframework.ai.model.tool.autoconfigure.ToolCallingAutoConfiguration.class}) @ConditionalOnClass(org.springframework.ai.deepseek.api.DeepSeekApi.class) @EnableConfigurationProperties({DeepSeekConnectionProperties.class,DeepSeekChatProperties.class}) @ConditionalOnProperty(name="spring.ai.model.chat", havingValue="deepseek", matchIfMissing=true) @ImportAutoConfiguration(classes={org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.class,org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class,org.springframework.ai.model.tool.autoconfigure.ToolCallingAutoConfiguration.class}) public class DeepSeekChatAutoConfiguration extends Object
Auto-configuration for DeepSeek Chat Model.
Author:
Geng Rong
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.ai.deepseek.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, org.springframework.ai.model.tool.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<org.springframework.ai.chat.observation.ChatModelObservationConvention> observationConvention, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.model.tool.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 org.springframework.ai.deepseek.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, org.springframework.ai.model.tool.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<org.springframework.ai.chat.observation.ChatModelObservationConvention> observationConvention, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.model.tool.ToolExecutionEligibilityPredicate> deepseekToolExecutionEligibilityPredicate)