-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: add Xiaomi MiMo provider support #3012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3229,5 +3229,46 @@ | |
| } | ||
| ], | ||
| "auth_methods": ["api_key"] | ||
| }, | ||
| { | ||
| "id": "xiaomi_mimo", | ||
| "api_key_vars": "XIAOMI_MIMO_API_KEY", | ||
| "url_param_vars": [ | ||
| { "name": "CLUSTER", "options": ["token-plan-sgp.xiaomimimo.com", "token-plan-cn.xiaomimimo.com", "token-plan-ams.xiaomimimo.com"] } | ||
| ], | ||
| "response_type": "OpenAI", | ||
| "url": "https://{{#if CLUSTER}}{{CLUSTER}}{{else}}token-plan-sgp.xiaomimimo.com{{/if}}/v1/chat/completions", | ||
| "models": [ | ||
| { | ||
| "id": "mimo-v2-pro", | ||
| "name": "MiMo V2 Pro", | ||
| "description": "Xiaomi's flagship foundation model with 1T+ parameters and 1M context length", | ||
| "context_length": 1000000, | ||
| "tools_supported": true, | ||
| "supports_parallel_tool_calls": true, | ||
| "supports_reasoning": true, | ||
| "input_modalities": ["text"] | ||
| }, | ||
| { | ||
| "id": "mimo-v2-omni", | ||
| "name": "MiMo V2 Omni", | ||
| "description": "Xiaomi's omni-modal model that natively processes image, video, and audio inputs", | ||
| "context_length": 262100, | ||
| "tools_supported": true, | ||
| "supports_parallel_tool_calls": true, | ||
| "supports_reasoning": true, | ||
| "input_modalities": ["text", "image"] | ||
|
Comment on lines
+3255
to
+3260
|
||
| }, | ||
| { | ||
| "id": "mimo-v2-tts", | ||
| "name": "MiMo V2 TTS", | ||
| "description": "Xiaomi's text-to-speech model", | ||
| "context_length": 8192, | ||
| "tools_supported": false, | ||
| "supports_parallel_tool_calls": false, | ||
| "input_modalities": ["text"] | ||
| } | ||
| ], | ||
| "auth_methods": ["api_key"] | ||
| } | ||
| ] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url_param_varsincludesCLUSTER, which makesCLUSTERmandatory when creating credentials from environment variables (see provider_repo reading allurl_param_varsand erroring if any are missing). That conflicts with the template’s{{else}} token-plan-sgp...default and the PR description (“defaults to Singapore”). Consider makingCLUSTERoptional (e.g., remove it fromurl_param_varsand hardcode the default URL), or adjust credential/env handling so missingCLUSTERdoesn’t block configuration while still allowing UI selection.