Skip to content

feat: add MiniMax as a supported LLM platform#5452

Open
octo-patch wants to merge 5 commits intochatchat-space:masterfrom
octo-patch:feature/add-minimax-provider
Open

feat: add MiniMax as a supported LLM platform#5452
octo-patch wants to merge 5 commits intochatchat-space:masterfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

Add MiniMax as a first-class platform type in Langchain-Chatchat, enabling users to connect to MiniMax LLM and embedding models via its OpenAI-compatible API.

Changes

  • Add minimax to the platform_type enum in PlatformConfig
  • Add default MiniMax platform configuration with the following models:
    • LLM models: MiniMax-M1, MiniMax-M1-40k, MiniMax-M2.5
    • Embedding model: embo-01
  • Route MiniMax embeddings through OpenAIEmbeddings (API-compatible)
  • Update README.md and README_en.md to list MiniMax as a supported online API provider

How to use

Users can configure MiniMax in their model_settings.yaml:

MODEL_PLATFORMS:
  - platform_name: minimax
    platform_type: minimax
    api_base_url: https://api.minimax.io/v1
    api_key: YOUR_MINIMAX_API_KEY
    llm_models:
      - MiniMax-M1
      - MiniMax-M1-40k
      - MiniMax-M2.5
    embed_models:
      - embo-01

Why MiniMax?

MiniMax offers high-performance LLMs with up to 204K context window (MiniMax-M2.5), competitive pricing, and an OpenAI-compatible API. This makes integration seamless with the existing Langchain-Chatchat architecture.

Test plan

  • Python files parse without errors
  • Changes follow existing platform configuration patterns
  • MiniMax API is OpenAI-compatible, so existing ChatOpenAI wrapper works without modification

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 14, 2026
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list
- Set MiniMax-M2.7 as default model (first in list)
- Keep all previous models as alternatives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant