fix(ai-gateway): alias balanced to efficient routing - #5031
Conversation
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Executive SummaryThe follow-up commits cleanly retire the legacy Overview
Issue Details (click to expand)WARNING
Files Reviewed (12 files)
Fix these issues in Kilo Cloud Previous Review Summary (commit 3fbed54)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 3fbed54)Status: 1 Issue Found | Recommendation: Address before merge Executive SummaryAliasing Overview
Issue Details (click to expand)WARNING
Files Reviewed (9 files)
Reviewed by kimi-k3 · Input: 71.1K · Output: 16K · Cached: 872.4K Review guidance: REVIEW.md from base branch |
Remove the KILO_AUTO_LEGACY_MODEL resolution branch entirely: upstream OpenClaw no longer hardcodes kilo/auto, so the ID is no longer treated as an auto model. Retire the KiloClaw first-instance setup promo with it: delete the BALANCED_CLAW_SETUP_MODEL branch, the setup-promo module, and the hidden :clawsetup Sonnet exclusive. Balanced requests resolve through the benchmark classifier like efficient ones.
Summary
kilo-auto/balancedthrough the benchmark-driven efficient decision engineTests
JEST_MAX_WORKERS=1 pnpm exec jest --runInBand --runTestsByPath src/lib/ai-gateway/auto-model/resolution.test.ts src/lib/ai-gateway/auto-routing-models.test.tsJEST_MAX_WORKERS=1 pnpm exec jest --runInBand --runTestsByPath 'src/app/api/openrouter/[...path]/route.test.ts'\n-JEST_MAX_WORKERS=1 pnpm exec jest --runInBand --runTestsByPath src/app/api/openrouter/models/route.test.ts 'src/app/api/organizations/[id]/models/route.test.ts' src/lib/ai-gateway/providers/openrouter/index.test.ts\n-pnpm --filter web typecheck\n-pnpm --filter web lint\n-pnpm exec oxfmt --check ...\n\nCloses: N/A