Class MiniMaxChatModel

java.lang.Object
org.springframework.ai.minimax.MiniMaxChatModel
All Implemented Interfaces:
ChatModel, StreamingChatModel, Model<Prompt,ChatResponse>, StreamingModel<Prompt,ChatResponse>

public class MiniMaxChatModel extends Object implements ChatModel
ChatModel and StreamingChatModel implementation for MiniMax backed by MiniMaxApi.
Since:
1.0.0 M1
Author:
Geng Rong, Alexandros Pappas, Ilayaperumal Gopinathan
See Also:
  • Field Details

    • retryTemplate

      public final org.springframework.retry.support.RetryTemplate retryTemplate
      The retry template used to retry the MiniMax API calls.
  • Constructor Details

    • MiniMaxChatModel

      public MiniMaxChatModel(MiniMaxApi miniMaxApi)
      Creates an instance of the MiniMaxChatModel.
      Parameters:
      miniMaxApi - The MiniMaxApi instance to be used for interacting with the MiniMax Chat API.
      Throws:
      IllegalArgumentException - if MiniMaxApi is null
    • MiniMaxChatModel

      public MiniMaxChatModel(MiniMaxApi miniMaxApi, MiniMaxChatOptions options)
      Initializes an instance of the MiniMaxChatModel.
      Parameters:
      miniMaxApi - The MiniMaxApi instance to be used for interacting with the MiniMax Chat API.
      options - The MiniMaxChatOptions to configure the chat model.
    • MiniMaxChatModel

      public MiniMaxChatModel(MiniMaxApi miniMaxApi, MiniMaxChatOptions options, ToolCallingManager toolCallingManager)
      Initializes a new instance of the MiniMaxChatModel.
      Parameters:
      miniMaxApi - The MiniMaxApi instance to be used for interacting with the MiniMax Chat API.
      options - The MiniMaxChatOptions to configure the chat model.
      toolCallingManager - The tool calling manager.
    • MiniMaxChatModel

      public MiniMaxChatModel(MiniMaxApi miniMaxApi, MiniMaxChatOptions options, ToolCallingManager toolCallingManager, org.springframework.retry.support.RetryTemplate retryTemplate)
      Initializes a new instance of the MiniMaxChatModel.
      Parameters:
      miniMaxApi - The MiniMaxApi instance to be used for interacting with the MiniMax Chat API.
      options - The MiniMaxChatOptions to configure the chat model.
      toolCallingManager - The tool calling manager.
      retryTemplate - The retry template.
    • MiniMaxChatModel

      public MiniMaxChatModel(MiniMaxApi miniMaxApi, MiniMaxChatOptions options, ToolCallingManager toolCallingManager, org.springframework.retry.support.RetryTemplate retryTemplate, io.micrometer.observation.ObservationRegistry observationRegistry, ToolExecutionEligibilityPredicate toolExecutionEligibilityPredicate)
      Initializes a new instance of the MiniMaxChatModel.
      Parameters:
      miniMaxApi - The MiniMaxApi instance to be used for interacting with the MiniMax Chat API.
      options - The MiniMaxChatOptions to configure the chat model.
      retryTemplate - The retry template.
      observationRegistry - The ObservationRegistry used for instrumentation.
      toolExecutionEligibilityPredicate - The Tool
  • Method Details