Remove MiMo V2.5 Pro and Gemini 3.1 Pro Preview models#183
Merged
Conversation
Drop both models from the shared registry and clean up every reference: - models.ts: remove from AvailableModels, SUPPORTED_MODELS, MODEL_SELECTOR_MODELS, and ModelInfos (Qwen 3.7 Max and Kimi K2.6 remain) - agent-prompt-steering.ts: drop the google/xiaomi provider overlays, narrow PromptProvider, and remove the resolver branches - Delete ai-sdk-gateway-provider-options.ts (it only configured Gemini's thinking knob) and strip its now-dead taskMode threading through agent-runtime and agent-route - Update tests + docs; delete the Gemini-only provider-options test https://claude.ai/code/session_01JzzEBjdPyv9GmBrz6PEeWP
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Completely removes MiMo V2.5 Pro (
xiaomi/mimo-v2.5-pro) and Gemini 3.1 Pro Preview (google/gemini-3.1-pro-preview) from the app, leaving Qwen 3.7 Max and Kimi K2.6 as the only models. The chat model selector reads from the registry, so both disappear from the UI automatically.Changes
Registry & prompt steering
models.ts— dropped both fromAvailableModels,SUPPORTED_MODELS,MODEL_SELECTOR_MODELS, andModelInfos.agent-prompt-steering.ts— narrowedPromptProviderto"alibaba" | "moonshotai", removed thegoogle/xiaomiprovider overlays, and dropped the resolver branches.Dead-code cleanup
ai-sdk-gateway-provider-options.ts— it existed solely to set Gemini'sthinkingConfigknob (no other provider used it), so it became a pure no-op once Gemini was gone.taskModethreading fromagent-runtime.tsandagent-route.ts(it was only consumed by that Gemini-specific provider-options call). Task mode is still inferred and still drives the system-prompt overlay.agent-runtime-synthesis-gating.tscomment.Tests & docs
agent-runtime-task-mode-routing.test.mjs; updated the registry, prompt-steering, system-prompt, helper-behavior, payload, gateway-search, and stub tests. The registry test now asserts both ids are fully absent.CLAUDE.md(Model Registry, provider overlay list, task-mode note, file tree) andREADME.md.Verification
All green locally:
pnpm typecheck✅pnpm lint✅ (--max-warnings=0)pnpm format:check✅pnpm test✅ (178 tests)pnpm build✅https://claude.ai/code/session_01JzzEBjdPyv9GmBrz6PEeWP
Generated by Claude Code