feat(studio): add MiniMax as an external LLM provider#6867
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
Code Review
This pull request adds support for the MiniMax inference provider, updating both the provider registry and the test suite. The review feedback suggests adding the China mainland base URL to the provider notes for consistency and including MiniMax in the vision test parameters to ensure its vision capabilities are properly covered.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| "supports_tool_calling": True, | ||
| "auth_header": "Authorization", | ||
| "auth_prefix": "Bearer ", | ||
| "notes": "OpenAI-compatible API. API key from platform.minimax.io. MiniMax-M3 has a 1M-token context window and image input.", |
There was a problem hiding this comment.
For consistency with other China-based providers (like Kimi and Qwen), it is highly beneficial to mention the China mainland base URL (https://api.minimaxi.com/v1) in the notes field.
| "notes": "OpenAI-compatible API. API key from platform.minimax.io. MiniMax-M3 has a 1M-token context window and image input.", | |
| "notes": "OpenAI-compatible API. API key from platform.minimax.io. MiniMax-M3 has a 1M-token context window and image input. China mainland: override base URL to https://api.minimaxi.com/v1", |
| "huggingface": ("HUGGINGFACE_API_KEY", "meta-llama/Llama-3.3-70B-Instruct"), | ||
| "kimi": ("MOONSHOT_API_KEY", "moonshot-v1-8k"), | ||
| "qwen": ("DASHSCOPE_API_KEY", "qwen-turbo"), | ||
| "minimax": ("MINIMAX_API_KEY", "MiniMax-M3"), |
|
Updated the MiniMax registry metadata with both current default model IDs, the mainland base URL, and complete multimodal details, and added metadata assertions plus vision coverage. I ran the repository formatter, Ruff, direct registry assertions, and test collection (47 tests collected; live network cases skipped locally without credentials). |
|
Updated the MiniMax integration to support selectable global and China mainland OpenAI-compatible and Anthropic-compatible endpoints, including internal /v1/messages routing and MiniMax-M3/MiniMax-M2.7 thinking behavior. Added request-capture coverage for all four chat and model-discovery paths; focused pytest, Ruff, TypeScript typecheck, and the production frontend build pass. |
|
Updated MiniMax model discovery to use the documented catalog authentication, added the required Messages header, and made vision gating follow the selected model. I ran the focused backend tests, Ruff, the frontend capability test, TypeScript typecheck, and the production frontend build. |
Summary
Add MiniMax as an external LLM provider in Unsloth Studio with both supported API protocols and regions.
Changes
Testing