Class MiniMaxAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.minimax.MiniMaxAutoConfiguration

@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,SpringAiRetryAutoConfiguration.class}) @ConditionalOnClass(MiniMaxApi.class) @EnableConfigurationProperties({MiniMaxConnectionProperties.class,MiniMaxChatProperties.class,MiniMaxEmbeddingProperties.class}) public class MiniMaxAutoConfiguration extends Object
Author:
Geng Rong
  • Constructor Details

    • MiniMaxAutoConfiguration

      public MiniMaxAutoConfiguration()
  • Method Details

    • miniMaxChatModel

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.minimax.chat", name="enabled", havingValue="true", matchIfMissing=true) public MiniMaxChatModel miniMaxChatModel(MiniMaxConnectionProperties commonProperties, MiniMaxChatProperties chatProperties, org.springframework.web.client.RestClient.Builder restClientBuilder, 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)
    • miniMaxEmbeddingModel

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.minimax.embedding", name="enabled", havingValue="true", matchIfMissing=true) public MiniMaxEmbeddingModel miniMaxEmbeddingModel(MiniMaxConnectionProperties commonProperties, MiniMaxEmbeddingProperties embeddingProperties, org.springframework.web.client.RestClient.Builder restClientBuilder, 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<EmbeddingModelObservationConvention> observationConvention)
    • springAiFunctionManager

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