Skip to content

Add MiniMax as direct LLM provider (M2.7 + M2.7-highspeed)#16

Open
octo-patch wants to merge 1 commit into
petergpt:mainfrom
octo-patch:feature/add-minimax-provider
Open

Add MiniMax as direct LLM provider (M2.7 + M2.7-highspeed)#16
octo-patch wants to merge 1 commit into
petergpt:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Adds MiniMax as a first-class provider alongside OpenRouter and OpenAI, enabling direct API access to MiniMax models without routing through OpenRouter
  • Introduces MiniMaxClient with temperature clamping to (0.0, 1.0], <think> tag stripping for M2.5+ models, and minimax/ prefix stripping
  • Upgrades MiniMax from M2.5 to M2.7 + M2.7-highspeed (204K context) in both config.json and config.v2.json
  • Adds wildcard provider routing (minimax/* to minimax) in config model_providers
  • Wires up MINIMAX_API_KEY env var in collect, grade, and grade_panel flows
  • Updates README with MiniMax setup instructions

Changes

File Change
scripts/openrouter_benchmark.py MiniMaxClient, MiniMaxAPIError, helper functions, provider registration, client wiring
config.json M2.7 + M2.7-highspeed models, minimax/* provider routing
config.v2.json Same as above for v2 config
README.md MINIMAX_API_KEY env var, minimax routing example
tests/test_minimax_provider.py 30 unit tests + 3 config tests + 3 integration tests

Test plan

  • 47 tests pass (python3 -m pytest tests/test_minimax_provider.py -v)
  • Run dry-run end-to-end to verify config parsing
  • Set MINIMAX_API_KEY and run a single-model collect to verify end-to-end

Adds MiniMax as a first-class provider alongside OpenRouter and OpenAI,
enabling direct API access to MiniMax models (M2.7, M2.7-highspeed)
without routing through OpenRouter. Includes temperature clamping to
(0.0, 1.0], think-tag stripping for M2.5+ models, and wildcard provider
routing via minimax/* in config.

Co-Authored-By: octopus <[email protected]>
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