Skip to content

feat: add MiniMax provider support#1661

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

feat: add MiniMax provider support#1661
octo-patch wants to merge 1 commit into
openai:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

Add MiniMax as a new LLM provider for the evals framework, enabling evaluation of MiniMax-M2.7 and MiniMax-M2.7-highspeed models.

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 both models for direct and chain-of-thought (CoT) solver configurations
  • Unit Tests: evals/solvers/providers/minimax/minimax_solver_test.py — 13 tests covering model validation, API configuration, solver properties, and error handling

Supported Models

Model ID Description
MiniMax-M2.7 Default model — Peak Performance, Ultimate Value
MiniMax-M2.7-highspeed Same performance, faster and more agile

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>
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