Skip to content

feat: add MiniMax as a first-class provider - #83

Open
octo-patch wants to merge 1 commit into
VRSEN:mainfrom
octo-patch:octo/20260729-provider-add-recvqanZ5VGCKf
Open

feat: add MiniMax as a first-class provider#83
octo-patch wants to merge 1 commit into
VRSEN:mainfrom
octo-patch:octo/20260729-provider-add-recvqanZ5VGCKf

Conversation

@octo-patch

Copy link
Copy Markdown

Reason: Add MiniMax as a first-class onboarding provider with MiniMax-M3 and MiniMax-M2.7 choices, global and CN endpoints, and both OpenAI-compatible and Anthropic-compatible routing.

Changes

  • config.py: resolve MiniMax models through LiteLLM with a region-selected base URL. MINIMAX_REGION (global default, or cn) selects the endpoint set. The OpenAI-compatible route (e.g. minimax/MiniMax-M3) uses the /v1 base URL; the Anthropic-compatible route (e.g. anthropic/MiniMax-M3) uses the /anthropic base URL. MINIMAX_API_BASE / MINIMAX_ANTHROPIC_BASE allow explicit overrides, and MINIMAX_API_KEY is forwarded when set. Non-MiniMax resolution is unchanged.
  • .env.example: document MINIMAX_API_KEY, MINIMAX_REGION, the optional base-URL overrides, and DEFAULT_MODEL examples for MiniMax-M3 and MiniMax-M2.7 on both routing styles.
  • README.md: list MINIMAX_API_KEY in the required-provider setup section.
  • tests/test_minimax_provider.py: unit tests covering model detection, region selection, endpoint resolution for both regions and both routing styles, override precedence, kwargs building, and .env.example documentation.

Checks

  • python -m pytest tests/test_minimax_provider.py — 24 passed
  • python -m py_compile config.py

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