Skip to content

feat: add MiniMax as first-class LLM provider (M3 default)#155

Open
octo-patch wants to merge 2 commits into
OpenBMB:mainfrom
octo-patch:feature/add-minimax-provider
Open

feat: add MiniMax as first-class LLM provider (M3 default)#155
octo-patch wants to merge 2 commits into
OpenBMB:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch

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

Copy link
Copy Markdown

Summary

Add MiniMax AI as a first-class LLM provider with MiniMax-M3 as the default model (alongside M2.7 series).

  • MiniMax offers an OpenAI-compatible API
  • MiniMax-M3 (default) — 512K context, up to 128K output, image input support
  • MiniMax-M2.7 — 192K context (previous generation)
  • MiniMax-M2.7-highspeed — 192K context, lower latency variant
  • New MiniMaxChat class extending BaseChatModel with temperature clamping, think-tag stripping, and cost tracking
  • Registered minimax, MiniMax-M3, MiniMax-M2.7, MiniMax-M2.7-highspeed in llm_registry

Changes

File Description
agentverse/llms/minimax.py New MiniMax LLM provider module (M3 default)
agentverse/llms/__init__.py Import MiniMaxChat
README.md MiniMax environment variables and config docs
tests/test_minimax_unit.py 43 unit tests
tests/test_minimax_integration.py 3 integration tests

Pricing (per 1M tokens)

Model Input Output
MiniMax-M3 (default) $0.60 $2.40
MiniMax-M2.7 $0.80 $3.20
MiniMax-M2.7-highspeed $0.80 $3.20

Usage

export MINIMAX_API_KEY="your_key"
# In task config YAML
llm_type: minimax
model: MiniMax-M3

Test plan

  • 43 unit tests passing (mocked API, registry, cost tracking, think-tag stripping, temperature clamping)
  • 3 integration tests passing (basic generation, history, async) using MiniMax-M3
  • Verify existing OpenAI tests still pass

PR Bot and others added 2 commits March 21, 2026 17:16
Add MiniMax AI (https://www.minimax.io/) as a new LLM provider alongside
OpenAI and Azure OpenAI. MiniMax offers an OpenAI-compatible API with
models M2.7, M2.5, and M2.5-highspeed (204K context).

Changes:
- New agentverse/llms/minimax.py: MiniMaxChat class extending BaseChatModel
  with temperature clamping, think-tag stripping, and cost tracking
- Register minimax/MiniMax-M2.7/M2.5/M2.5-highspeed in llm_registry
- Update __init__.py to import MiniMaxChat
- Add MiniMax environment variables and config docs to README.md
- Add 43 unit tests and 3 integration tests

Usage:
  export MINIMAX_API_KEY="your_key"
  # In config YAML:
  llm_type: minimax
  model: MiniMax-M2.7
- Add MiniMax-M3 to model list and set as default (512K ctx, 128K output)
- Keep MiniMax-M2.7 and add MiniMax-M2.7-highspeed
- Remove older models (M2.5/M2.5-highspeed)
- Update pricing to M3 standard rates ($0.6/M input, $2.4/M output)
- Update README docs and tests accordingly

Co-Authored-By: Octopus <liyuan851277048@icloud.com>
@octo-patch octo-patch changed the title feat: add MiniMax as first-class LLM provider feat: add MiniMax as first-class LLM provider (M3 default) Jun 7, 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