Skip to content

fix(gateway): expose MiMo model variants to OpenCode clients#1644

Merged
chrarnoldus merged 1 commit intomainfrom
fix/mimo-opencode-variants
Mar 27, 2026
Merged

fix(gateway): expose MiMo model variants to OpenCode clients#1644
chrarnoldus merged 1 commit intomainfrom
fix/mimo-opencode-variants

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot bot commented Mar 27, 2026

Summary

  • Xiaomi MiMo models (xiaomi/mimo-v2-pro:free and xiaomi/mimo-v2-omni:free) were missing opencode.variants configuration, causing OpenCode clients on Kilo Gateway to not properly recognize or surface these reasoning models.
  • Added isXiaomiModel to the variant detection in getModelVariants() so MiMo models now expose instant (reasoning disabled) and thinking (reasoning enabled) variants, matching the pattern used by other reasoning models like Moonshot and ZAI.
  • Updated the approved test snapshot to reflect the new opencode variant settings for both MiMo models.

Closes #1641

Verification

  • pnpm typecheck — passed, no errors
  • Manual review of getOpenCodeSettings() flow confirms MiMo models now return { variants: { instant: ..., thinking: ... } } instead of {}

Visual Changes

N/A

Reviewer Notes

  • The fix adds isXiaomiModel(model) to the existing isMoonshotModel(model) || isZaiModel(model) branch in getModelVariants() (src/lib/providers/model-settings.ts:66), giving MiMo models the same instant/thinking variant structure as other reasoning-capable models.
  • Both MiMo models were already registered in kiloFreeModels with status: 'public' and the 'reasoning' flag — the only missing piece was the opencode variant configuration that tells clients how to toggle reasoning.

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
@kilo-code-bot
Copy link
Copy Markdown
Contributor Author

kilo-code-bot bot commented Mar 27, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • src/lib/providers/model-settings.ts
  • src/tests/openrouter-models-sorting.approved.json

Reviewed by gpt-5.4-20260305 · 123,652 tokens

@chrarnoldus chrarnoldus merged commit 8723601 into main Mar 27, 2026
12 checks passed
@chrarnoldus chrarnoldus deleted the fix/mimo-opencode-variants branch March 27, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCode users on Kilo Gateway not seeing MiMo Omni and MiMo Pro models

2 participants