Skip to content

feat: add MiniMax as first-class LLM provider#594

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

feat: add MiniMax as first-class LLM provider#594
octo-patch wants to merge 1 commit intoOpenBMB:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Add MiniMax as a built-in model provider alongside OpenAI and Gemini
  • MiniMax models (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed) accessible via OpenAI-compatible Chat Completions API with 204K context windows
  • Provider extends OpenAIProvider with MiniMax-specific behavior: temperature clamping to (0.0, 1.0], think tag stripping for reasoning models, MINIMAX_API_KEY auto-detection, and forced Chat Completions protocol

Changes

File Description
runtime/node/agent/providers/minimax_provider.py New MiniMaxProvider class extending OpenAIProvider
runtime/node/agent/providers/builtin_providers.py Register minimax in ProviderRegistry
tests/test_minimax_provider.py 34 unit tests + 3 integration tests
README.md Supported providers table with MiniMax info

Usage

Set MINIMAX_API_KEY in .env and configure agent nodes:

model:
  provider: minimax
  name: MiniMax-M2.7
  api_key: ${MINIMAX_API_KEY}

Test plan

  • 34 unit tests covering init defaults, temperature clamping, think-tag stripping, response deserialization, token tracking, payload construction, provider registration, regex patterns, and client creation
  • 3 integration tests (skipped without MINIMAX_API_KEY) verifying real API calls with M2.7 and M2.7-highspeed models
  • All 37 tests pass

Add MiniMax model provider (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed)
via the OpenAI-compatible Chat Completions API. The provider extends
OpenAIProvider with MiniMax-specific behavior:

- Default base URL: https://api.minimax.io/v1
- MINIMAX_API_KEY environment variable auto-detection
- Temperature clamping to (0.0, 1.0] range
- <think> tag stripping for reasoning model output
- Chat Completions protocol enforcement (no Responses API)
- Token usage tracking with provider='minimax'

Includes 34 unit tests + 3 integration tests and README documentation.
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