feat(ai-gateway): add weighted routing for Auto Free models - #5023
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of commit Files Reviewed (1 file)
Previous Review Summary (commit 2e00a6e)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 2e00a6e)Status: 1 Issue Found | Recommendation: Address before merge Executive SummaryThe weighted Auto Free routing logic is correct (bucket math, availability filtering, null fallback all sound), with a single low-risk test-quality nit: a misleading modulus in the new weighted-selection test assertion in Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (3 files)
Reviewed by kimi-k3 · Input: 25.7K · Output: 3K · Cached: 170.9K Review guidance: REVIEW.md from base branch |
Summary
Verification
pnpm --filter web exec jest --runInBand src/lib/ai-gateway/models.test.ts src/lib/ai-gateway/auto-model/resolution.test.ts src/lib/ai-gateway/auto-routing-models.test.tspnpm --filter web typecheckpnpm --filter web lintoxfmt --list-differentgit diff --check