Skip to content

feat: add MiniMax provider with M3 as default model#1661

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

feat: add MiniMax provider with M3 as default model#1661
octo-patch wants to merge 2 commits into
openai:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch

@octo-patch octo-patch commented May 13, 2026

Copy link
Copy Markdown

Summary

Add MiniMax as a new LLM provider for the evals framework, with MiniMax-M3 as the default model and MiniMax-M2.7 / MiniMax-M2.7-highspeed as alternatives.

Changes

  • New Provider: evals/solvers/providers/minimax/minimax_solver.py — inherits from OpenAISolver, uses MiniMax's OpenAI-compatible API endpoint (https://api.minimax.io/v1)
  • Registry Config: evals/registry/solvers/minimax.yaml — registers MiniMax-M3 (default), MiniMax-M2.7, and MiniMax-M2.7-highspeed for direct and chain-of-thought (CoT) solver configurations
  • Unit Tests: evals/solvers/providers/minimax/minimax_solver_test.py — tests covering model validation, API configuration, solver properties, and error handling for M3 and M2.7 variants

Supported Models

Model ID Description
MiniMax-M3 Default — 512K context, up to 128K output, image input support
MiniMax-M2.7 Previous-generation model
MiniMax-M2.7-highspeed Previous-generation low-latency variant

Environment Variable

  • MINIMAX_API_KEY — Required for authentication
  • MINIMAX_BASE_URL — Optional, defaults to https://api.minimax.io/v1

API Reference

Implementation Approach

Follows the same pattern as TogetherSolver — inherits from OpenAISolver and overrides API base URL, API key, model validation, and prechecks (since tiktoken doesn't support MiniMax models).

- Add MiniMax chat model provider (MiniMax-M2.7, MiniMax-M2.7-highspeed)
- Leverage OpenAI-compatible API via OpenAISolver inheritance
- Add MINIMAX_API_KEY environment variable support
- Add unit tests for solver properties and model validation
- Add YAML registry configuration for direct and CoT solvers

Octopus <liyuan851277048@icloud.com>
- Add MiniMax-M3 to model registry and set as default
- Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives
- Update unit tests to cover M3 alongside existing models
@octo-patch octo-patch changed the title feat: add MiniMax provider support feat: add MiniMax provider with M3 as default model 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