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"), |
Summary
Add MiniMax as a new external LLM provider in Unsloth Studio, alongside the existing OpenAI-compatible providers (DeepSeek, Kimi, Qwen, …).
Changes
minimaxentry toPROVIDER_REGISTRYinstudio/backend/core/inference/providers.py. It uses MiniMax's OpenAI-compatible endpoint (https://api.minimax.io/v1) with Bearer auth, so it routes through the existing/chat/completionspath like the other OpenAI-compatible providers — no new backend translation needed.MiniMax-M3(1M-token context, image input).tests/test_providers_api.py: register MiniMax in the provider config map and bump the expected registry size (9 → 10).Testing
python -m py_compileon both changed files.get_provider_info/get_base_url), routes through the OpenAI-compatible path, and thatlist_available_providers()returns 10 entries all carrying the required fields.ruff checkpasses on the changed files.test_providers_api.pysuite is a live-server integration test (skipped without a running Studio instance / API key), so the registry wiring is covered by CI.