feat(ai-gateway): remove gemma-4-26b-a4b-it:free, fall kilo-auto/small back to free rotation - #4940
feat(ai-gateway): remove gemma-4-26b-a4b-it:free, fall kilo-auto/small back to free rotation#4940chrarnoldus wants to merge 3 commits into
Conversation
…l back to free rotation Remove the hidden Kilo-exclusive Gemma free model. When the user has no balance, kilo-auto/small now falls back to the same free model rotation as kilo-auto/free instead of routing to the removed model.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Executive SummaryThe incremental commit Overview
Issue Details (click to expand)WARNING
Files Reviewed (2 files in this incremental pass)
Notes
Fix these issues in Kilo Cloud Previous Review Summaries (2 snapshots, latest commit 0bd3da2)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 0bd3da2)Status: 2 Issues Found | Recommendation: Address before merge Executive SummaryThe zero-balance Overview
Issue Details (click to expand)WARNING
Files Reviewed (1 file in this incremental pass)
Notes
Fix these issues in Kilo Cloud Previous review (commit 8ece2bb)Status: 2 Issues Found | Recommendation: Address before merge Executive SummaryRouting Overview
Issue Details (click to expand)WARNING
Files Reviewed (9 files)
Notes
Reviewed by claude-opus-5 · Input: 28 · Output: 5.7K · Cached: 549K Review guidance: REVIEW.md from base branch |
…inator kilo-auto/small can now resolve to text-only free rotation models (ling-3.0-flash, laguna-s-2.1), so supports_images must be false. max_completion_tokens drops to 16384, bounded by the paid gemma path.
Summary
gemma_4_26b_a4b_it_free_model(google/gemma-4-26b-a4b-it:free) from the codebase. Its public ID was already present inforbiddenFreeModelIds; the stale "usable through kilo-auto" comment is updated.kilo-auto/smallnow falls back to the same free model rotation askilo-auto/free(sharedresolveFreeRotationhelper) instead of routing to the removed Gemma free model. With balance,kilo-auto/smallstill resolves togoogle/gemma-4-26b-a4b-it.Tests
kilo-auto/smallbranch coverage toresolution.test.ts(paid path, free-rotation fallback, free candidate selection).context-overflow, OpenRouter suppression,rewriteModelResponsecost stripping,mapModelIdToVercel) with the publicstepfun_37_flash_free_modelor local mocks.pnpm --filter web typecheck, oxlint, oxfmt, and all affected jest suites pass.