-
Notifications
You must be signed in to change notification settings - Fork 192
feat(models): add Xiaomi MiMo model family #2200
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
Merged
steebchen
merged 10 commits into
theopenco:main
from
analogpvt:feat/add-xiaomi-mimo-models
May 7, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d7a5cfe
feat(models): add Xiaomi MiMo model family
76ce63e
feat(xiaomi): add e2e tests, configurable base URL, env examples
ad0e465
docs(xiaomi): clarify mimo-v2-flash 10% cache discount is intentional
0dc5293
ci: add LLM_XIAOMI_API_KEY to e2e workflow
steebchen 7e2a4ec
fix(test): save/restore LLM_XIAOMI_BASE_URL in endpoint tests
155f3a7
feat(ui): add Xiaomi provider icon
45a762f
fix(ui): add xiaomi icon to provider-keys logo mapping
2af8907
fix(gateway): register xiaomi for openai-compatible streaming
steebchen ca28db4
fix(xiaomi): remove reasoningOutput omit for models that return reaso…
2edd40d
Merge branch 'main' into feat/add-xiaomi-mimo-models
steebchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,179 @@ | ||
| import type { ModelDefinition } from "@/models.js"; | ||
|
|
||
| export const xiaomiModels = [ | ||
| { | ||
| id: "mimo-v2.5-pro", | ||
| name: "MiMo V2.5 Pro", | ||
| description: | ||
| "Xiaomi's flagship 1T-parameter model with 42B activations, 1M ultra-long context, and deep thinking capabilities. Performs comparably to Claude Opus 4.6 in agent scenarios.", | ||
| family: "xiaomi", | ||
| releasedAt: new Date("2026-04-23"), | ||
| providers: [ | ||
| { | ||
| providerId: "xiaomi" as const, | ||
| modelName: "mimo-v2.5-pro", | ||
| inputPrice: 1 / 1e6, | ||
| outputPrice: 3 / 1e6, | ||
| cachedInputPrice: 0.2 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 1000000, | ||
| maxOutput: 131072, | ||
| streaming: true, | ||
| reasoning: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| pricingTiers: [ | ||
| { | ||
| name: "256K", | ||
| upToTokens: 256000, | ||
| inputPrice: 1 / 1e6, | ||
| outputPrice: 3 / 1e6, | ||
| cachedInputPrice: 0.2 / 1e6, | ||
| }, | ||
| { | ||
| name: "1M", | ||
| upToTokens: 1000000, | ||
| inputPrice: 2 / 1e6, | ||
| outputPrice: 6 / 1e6, | ||
| cachedInputPrice: 0.4 / 1e6, | ||
| }, | ||
| ], | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| id: "mimo-v2-pro", | ||
| name: "MiMo V2 Pro", | ||
| description: | ||
| "Xiaomi's 1T-parameter model with 42B active parameters and 1M context window using hybrid Global Attention + SWA architecture.", | ||
| family: "xiaomi", | ||
| releasedAt: new Date("2026-03-18"), | ||
| providers: [ | ||
| { | ||
| providerId: "xiaomi" as const, | ||
| modelName: "mimo-v2-pro", | ||
| inputPrice: 1 / 1e6, | ||
| outputPrice: 3 / 1e6, | ||
| cachedInputPrice: 0.2 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 1000000, | ||
| maxOutput: 131072, | ||
| streaming: true, | ||
| reasoning: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| pricingTiers: [ | ||
| { | ||
| name: "256K", | ||
| upToTokens: 256000, | ||
| inputPrice: 1 / 1e6, | ||
| outputPrice: 3 / 1e6, | ||
| cachedInputPrice: 0.2 / 1e6, | ||
| }, | ||
| { | ||
| name: "1M", | ||
| upToTokens: 1000000, | ||
| inputPrice: 2 / 1e6, | ||
| outputPrice: 6 / 1e6, | ||
| cachedInputPrice: 0.4 / 1e6, | ||
| }, | ||
| ], | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| id: "mimo-v2.5", | ||
| name: "MiMo V2.5", | ||
| description: | ||
| "Xiaomi's full-modal perception model supporting native understanding of images, videos, audio, and text with 1M context. Agent performance comparable to MiMo V2.5 Pro.", | ||
| family: "xiaomi", | ||
| releasedAt: new Date("2026-04-23"), | ||
| providers: [ | ||
| { | ||
| providerId: "xiaomi" as const, | ||
| modelName: "mimo-v2.5", | ||
| inputPrice: 0.4 / 1e6, | ||
| outputPrice: 2 / 1e6, | ||
| cachedInputPrice: 0.08 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 1000000, | ||
| maxOutput: 131072, | ||
| streaming: true, | ||
| reasoning: true, | ||
| vision: true, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| pricingTiers: [ | ||
| { | ||
| name: "256K", | ||
| upToTokens: 256000, | ||
| inputPrice: 0.4 / 1e6, | ||
| outputPrice: 2 / 1e6, | ||
| cachedInputPrice: 0.08 / 1e6, | ||
| }, | ||
| { | ||
| name: "1M", | ||
| upToTokens: 1000000, | ||
| inputPrice: 0.8 / 1e6, | ||
| outputPrice: 4 / 1e6, | ||
| cachedInputPrice: 0.16 / 1e6, | ||
| }, | ||
| ], | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| id: "mimo-v2-omni", | ||
| name: "MiMo V2 Omni", | ||
| description: | ||
| "Xiaomi's multimodal model supporting text, vision, and speech modalities with 256K context window.", | ||
| family: "xiaomi", | ||
| releasedAt: new Date("2026-03-18"), | ||
| providers: [ | ||
| { | ||
| providerId: "xiaomi" as const, | ||
| modelName: "mimo-v2-omni", | ||
| inputPrice: 0.4 / 1e6, | ||
| outputPrice: 2 / 1e6, | ||
| cachedInputPrice: 0.08 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 256000, | ||
| maxOutput: 131072, | ||
| streaming: true, | ||
| reasoning: false, | ||
| vision: true, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| id: "mimo-v2-flash", | ||
| name: "MiMo V2 Flash", | ||
| description: | ||
| "Xiaomi's high-efficiency inference model with hybrid architecture, 3 MTP layers for 2.5-3.7x faster inference, and 256K context.", | ||
| family: "xiaomi", | ||
| releasedAt: new Date("2025-12-16"), | ||
| providers: [ | ||
| { | ||
| providerId: "xiaomi" as const, | ||
| modelName: "mimo-v2-flash", | ||
| inputPrice: 0.1 / 1e6, | ||
| outputPrice: 0.3 / 1e6, | ||
| // Flash model uses a 10% cache discount (not 20% like other MiMo models) | ||
| cachedInputPrice: 0.01 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 256000, | ||
| maxOutput: undefined, | ||
| streaming: true, | ||
| reasoning: true, | ||
| reasoningOutput: "omit" as const, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
|
analogpvt marked this conversation as resolved.
|
||
| ], | ||
| }, | ||
| ] as const satisfies ModelDefinition[]; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.