Repository navigation
fix(ai-gateway): prefer Bedrock, Anthropic, then Vertex for Fable models - #6883
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (2 files)
Fix these issues in Kilo Cloud Previous Review Summary (commit 23167bd)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 23167bd)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)CRITICAL
WARNING
Files Reviewed (1 file)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
iscekic
approved these changes
Sep 29, 2026
This was referenced Sep 30, 2026
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
Fable models (
anthropic/claude-fable-5) were excluded from the Claude preferred provider order, so OpenRouter and Vercel routed them without a preference. This removes the exclusion so Fable uses the same order as every other Claude model: Amazon Bedrock, then Anthropic, then Google Vertex.The removed guard carried the comment "specifying this for fable breaks the opus fallback on vercel". Fable requests on OpenRouter and Vercel still get
models: [fable, opus-4.8]fromapplyGatewayModelsFallback; with this change they also carryprovider.order, which Vercel receives asproviderOptions.gateway.orderalongsidemodels.Verification
jest src/lib/ai-gateway/providers: 32 suites, 507 tests pass. The Fable test inapply-provider-specific-logic.test.tsnow expects the Claude order instead of no order.getPreferredProviderOrder(...).at(0)now selects theamazon-bedrockendpoint for Fable. OpenRouter lists Bedrock foranthropic/claude-fable-5at $10/M input and $50/M output, the same asendpoints[0], so displayed pricing is unchanged.orderis set. This needs a manual check after deploy, because the removed comment documents a previous regression here.