Skip to content

feat: add MiniMax LLM provider support (default MiniMax-M3)#135

Open
octo-patch wants to merge 3 commits into
knownsec:mainfrom
octo-patch:feat/add-minimax-provider
Open

feat: add MiniMax LLM provider support (default MiniMax-M3)#135
octo-patch wants to merge 3 commits into
knownsec:mainfrom
octo-patch:feat/add-minimax-provider

Conversation

@octo-patch

@octo-patch octo-patch commented Mar 12, 2026

Copy link
Copy Markdown

Summary

Add MiniMax as a first-class LLM provider for aipyapp, with the latest MiniMax-M3 model as the default.

Changes

  • Provider configuration (aipyapp/config/llm.py): Added MiniMax provider entry with api.minimax.io/v1 base URL
  • Client implementation (aipyapp/llm/manager.py): Added MiniMaxClient extending OpenAIBaseClient with MiniMax-M3 as default model
  • Model catalog (aipyapp/res/models.yaml): Added 3 MiniMax model entries:
    • MiniMax-M3default: 512K context, 128K max output, supports image input, reasoning
    • MiniMax-M2.7 — previous-generation flagship with reasoning support
    • MiniMax-M2.7-highspeed — high-speed variant of M2.7

Configuration

{
  "MiniMax": {
    "api_key": "your-minimax-api-key",
    "type": "minimax"
  }
}

Get an API key at https://platform.minimaxi.com

Why MiniMax-M3?

MiniMax-M3 is the latest MiniMax model, featuring:

  • 512K context window (vs. 200K in M2.7)
  • Up to 128K output tokens
  • Image input support (OpenAI-compatible vision API)
  • Enhanced reasoning, function calling, and text generation
  • Served via OpenAI-compatible API at api.minimax.io/v1

MiniMax-M2.7 and MiniMax-M2.7-highspeed remain available for users who prefer the previous generation. Older models (M2.5 series) have been dropped.

octo-patch and others added 3 commits March 12, 2026 12:07
Add MiniMax as a new LLM provider with OpenAI-compatible API.

Changes:
- Add MiniMaxClient class in llm/manager.py (BASE_URL: https://api.minimax.io/v1)
- Register 'minimax' type in CLIENTS dict
- Add MiniMax to PROVIDERS in config/llm.py for GUI wizard support
- Add MiniMax-M2.5 and MiniMax-M2.5-highspeed models to models.yaml
  with capabilities, context window (204,800), and pricing info

MiniMax provides an OpenAI-compatible API supporting text generation
and function calling. Two models are available:
- MiniMax-M2.5: $0.3/$1.2 per M tokens (input/output)
- MiniMax-M2.5-highspeed: $0.6/$2.4 per M tokens (input/output)

API docs: https://platform.minimax.io
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed model entries in models.yaml
  with REASONING capability
- Update MiniMaxClient default MODEL from M2.5 to M2.7
- Retain M2.5/M2.5-highspeed entries for backward compatibility
- Add MiniMax-M3 to model list and set as default
- Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed
- Remove older models (M2.5/M2.5-highspeed)
- Update MiniMaxClient.MODEL to MiniMax-M3
@octo-patch octo-patch changed the title feat: add MiniMax LLM provider support feat: add MiniMax LLM provider support (default MiniMax-M3) Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant