fix(gateway): expose MiMo model variants to OpenCode clients#1644
Merged
chrarnoldus merged 1 commit intomainfrom Mar 27, 2026
Merged
fix(gateway): expose MiMo model variants to OpenCode clients#1644chrarnoldus merged 1 commit intomainfrom
chrarnoldus merged 1 commit intomainfrom
Conversation
Add Xiaomi MiMo models to the opencode variant configuration so that OpenCode users on Kilo Gateway can see and use MiMo Omni and MiMo Pro with instant/thinking reasoning variants. Closes #1641
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by gpt-5.4-20260305 · 123,652 tokens |
chrarnoldus
approved these changes
Mar 27, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
xiaomi/mimo-v2-pro:freeandxiaomi/mimo-v2-omni:free) were missingopencode.variantsconfiguration, causing OpenCode clients on Kilo Gateway to not properly recognize or surface these reasoning models.isXiaomiModelto the variant detection ingetModelVariants()so MiMo models now exposeinstant(reasoning disabled) andthinking(reasoning enabled) variants, matching the pattern used by other reasoning models like Moonshot and ZAI.Closes #1641
Verification
pnpm typecheck— passed, no errorsgetOpenCodeSettings()flow confirms MiMo models now return{ variants: { instant: ..., thinking: ... } }instead of{}Visual Changes
N/A
Reviewer Notes
isXiaomiModel(model)to the existingisMoonshotModel(model) || isZaiModel(model)branch ingetModelVariants()(src/lib/providers/model-settings.ts:66), giving MiMo models the sameinstant/thinkingvariant structure as other reasoning-capable models.kiloFreeModelswithstatus: 'public'and the'reasoning'flag — the only missing piece was the opencode variant configuration that tells clients how to toggle reasoning.