Class MiniMaxApi

java.lang.Object
org.springframework.ai.minimax.api.MiniMaxApi

public class MiniMaxApi extends Object
Single class implementation of the MiniMax Chat Completion API and MiniMax Embedding API.
Since:
1.0.0 M1
Author:
Geng Rong, Thomas Vitale
  • Field Details

    • DEFAULT_CHAT_MODEL

      public static final String DEFAULT_CHAT_MODEL
    • DEFAULT_EMBEDDING_MODEL

      public static final String DEFAULT_EMBEDDING_MODEL
  • Constructor Details

    • MiniMaxApi

      public MiniMaxApi(String miniMaxToken)
      Create a new chat completion api with default base URL.
      Parameters:
      miniMaxToken - MiniMax apiKey.
    • MiniMaxApi

      public MiniMaxApi(String baseUrl, String miniMaxToken)
      Create a new chat completion api.
      Parameters:
      baseUrl - api base URL.
      miniMaxToken - MiniMax apiKey.
    • MiniMaxApi

      public MiniMaxApi(String baseUrl, String miniMaxToken, org.springframework.web.client.RestClient.Builder restClientBuilder)
      Create a new chat completion api.
      Parameters:
      baseUrl - api base URL.
      miniMaxToken - MiniMax apiKey.
      restClientBuilder - RestClient builder.
    • MiniMaxApi

      public MiniMaxApi(String baseUrl, String miniMaxToken, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
      Create a new chat completion api.
      Parameters:
      baseUrl - api base URL.
      miniMaxToken - MiniMax apiKey.
      restClientBuilder - RestClient builder.
      responseErrorHandler - Response error handler.
  • Method Details