Class MoonshotAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.moonshot.MoonshotAutoConfiguration

@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,SpringAiRetryAutoConfiguration.class}) @EnableConfigurationProperties({MoonshotCommonProperties.class,MoonshotChatProperties.class}) @ConditionalOnClass(MoonshotApi.class) public class MoonshotAutoConfiguration extends Object
Auto-configuration for Moonshot Chat Model.
Author:
Geng Rong
  • Constructor Details

    • MoonshotAutoConfiguration

      public MoonshotAutoConfiguration()
  • Method Details

    • moonshotChatModel

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.moonshot.chat", name="enabled", havingValue="true", matchIfMissing=true) public MoonshotChatModel moonshotChatModel(MoonshotCommonProperties commonProperties, MoonshotChatProperties chatProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, List<FunctionCallback> toolFunctionCallbacks, FunctionCallbackContext functionCallbackContext, 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)
    • springAiFunctionManager

      @Bean @ConditionalOnMissingBean public FunctionCallbackContext springAiFunctionManager(org.springframework.context.ApplicationContext context)