fix(ai-gateway): fall back from Fable and Opus 5 to Opus 4.8 - #4817
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryReviewed the incremental refactor that replaces the exact-match Opus 5 check with an explicit Files Reviewed (3 files)
Previous Review Summary (commit 0569660)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 0569660)Status: No Issues Found | Recommendation: Merge Executive SummaryReviewed the Opus 4.8 fallback change across the constants, fallback logic, and test file; the implementation is correct, tests cover both providers and both trigger models, and no bugs, security issues, or breaking changes were found. Files Reviewed (3 files)
Reviewed by claude-sonnet-5 · Input: 26 · Output: 4.1K · Cached: 711.1K Review guidance: REVIEW.md from base branch |
Summary
Testing
pnpm --filter web exec jest --runInBand src/lib/ai-gateway/providers/apply-provider-specific-logic.test.tspnpm --filter web run typecheckpnpm exec oxlint --config .oxlintrc.json apps/web/src/lib/ai-gateway/providers/anthropic.constants.ts apps/web/src/lib/ai-gateway/providers/apply-provider-specific-logic.ts apps/web/src/lib/ai-gateway/providers/apply-provider-specific-logic.test.ts