Add Claude Fable 5 across Anthropic, Bedrock, Vertex AI, and Azure AI - #30062
Closed
mateo-berri wants to merge 1 commit into
Closed
Add Claude Fable 5 across Anthropic, Bedrock, Vertex AI, and Azure AI#30062mateo-berri wants to merge 1 commit into
mateo-berri wants to merge 1 commit into
Conversation
Adds cost map entries for claude-fable-5 ($10/$50 per MTok, 1M context,
128K output, adaptive thinking only) on the Anthropic API, Bedrock
converse (base, global, and us/eu geo inference profiles at the 10%
regional premium), Vertex AI, and Azure AI (Microsoft Foundry, which
serves Fable 5 with the full 1M context window unlike Opus 4.8).
Registers anthropic.claude-fable-5 in BEDROCK_CONVERSE_MODELS, lists the
model in the setup wizard, and extends the reasoning effort e2e grid.
The Bedrock, Vertex, and Azure grid cells carry fail_reason markers
until the CI accounts are provisioned: Bedrock needs the provider data
sharing opt-in Fable 5 requires, and the Foundry resource needs a
claude-fable-5 deployment.
The first-party entry carries provider_specific_entry {us: 1.1} for the
inference_geo premium and deliberately no fast multiplier since Fable 5
has no fast mode.
https://claude.ai/code/session_01MZarYYT3aS7DxaNjoax6Gm
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
7 tasks
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.
Relevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
make test-unit@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
CI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Screenshots / Proof of Fix
Proxy started against this branch's cost map (the hosted map on main does not have the model yet, so
LITELLM_LOCAL_MODEL_COST_MAP=Truemakes the proxy use the bundled copy; once this merges, the hosted map picks it up and the flag is unnecessary):with deployments
anthropic/claude-fable-5,bedrock/us.anthropic.claude-fable-5,vertex_ai/claude-fable-5, andazure_ai/claude-fable-5.First-party Anthropic, with
reasoning_efforttranslated to adaptive thinking and real spend tracked:The cost header matches the new pricing exactly: 25 input tokens at $10/MTok plus 13 output tokens at $50/MTok is $0.0009
Streaming with
reasoning_effort: "xhigh"(Fable 5 rejects the legacybudget_tokensshape with a 400, so a 200 here proves the adaptivethinkingplusoutput_config.effortwire format is being sent):reasoning_effort: "none"also returns 200; this matters because Fable 5 is stricter than Opus 4.8 and 400s on an explicitthinking: {"type": "disabled"}, so LiteLLM must omit the param entirely, which it does:Bedrock routing reaches the real model; the remaining blocker is account provisioning, not LiteLLM. Fable 5 on Bedrock requires opting the AWS account into provider data sharing via the Data Retention API (no console UI at launch per the AWS model card), which our CI account has not done:
(this is from the
global.profile;us.anthropic.claude-fable-5is not yet listed for this account and returns "provided model identifier is invalid", and the base id returns the standard "use an inference profile" error, both consistent with a day-one rollout)Azure Foundry authenticates and routes correctly; the CI resource just has no
claude-fable-5deployment yet (same current state asclaude-opus-4-8there). Creating the deployment in the Foundry portal under Models + endpoints is the one manual step left:Vertex could not be exercised live from this sandbox because the ADC credential in the environment has an expired refresh token ("Reauthentication is needed. Please run
gcloud auth application-default login"); the model idclaude-fable-5is confirmed against the Vertex docs and the entries mirror the verified Opus 4.8 shapeTo re-run Bedrock/Vertex/Azure once provisioned: opt the AWS account into
provider_data_sharing, refresh the gcloud ADC credential, create the Foundry deployment, then re-run the curls above with the corresponding model names. The e2e grid cells intests/llm_translation/reasoning_effort_grid/grid_spec.pycarryfail_reasonmarkers for exactly these three gaps and should have those markers removed at the same timeType
🆕 New Feature
Changes
Adds Claude Fable 5 (released today; $10/$50 per MTok, 1M context, 128K max output, adaptive thinking only) to the model cost map for all four platforms that serve it:
claude-fable-5(Anthropic API, with theinference_geo: us1.1x multiplier inprovider_specific_entryand deliberately nofastkey since Fable 5 has no fast mode),anthropic.claude-fable-5plusglobal./us./eu.inference profiles (Bedrock converse, geo profiles at the documented 10% regional premium; AWS lists no au/apac/jp profiles for this model),vertex_ai/claude-fable-5and@default(Vertex publishes the bare id with no date suffix), andazure_ai/claude-fable-5(Microsoft Foundry serves Fable 5 with the full 1M context window, unlike Opus 4.8 which is capped at 200k there)All entries carry
supports_adaptive_thinking, which is what makes LiteLLM emitthinking: {"type": "adaptive"}plusoutput_config.effortinstead of the legacybudget_tokensshape that Fable 5 rejects. Cache pricing uses the standard multipliers: $12.50/MTok 5m write, $20/MTok 1h write, $1/MTok readAlso registers
anthropic.claude-fable-5inBEDROCK_CONVERSE_MODELS, adds the model to the setup wizard, and extends the reasoning effort e2e grid with Fable 5 rows for all four providers (Bedrock/Vertex/Azure cells xfail with documented provisioning reasons until the CI accounts are set up, mirroring how Opus 4.8 was rolled in)Tests:
tests/test_litellm/test_claude_fable_5_config.pyvalidates pricing, capabilities, regional premiums, backup-map parity, Bedrock converse registration, provider resolution, and adaptive-thinking detection throughbedrock/,bedrock/invoke/,vertex_ai/, andazure_ai/routed ids. One notable assertion:provider_specific_entry == {"us": 1.1}guards against a future copy-paste of the Opus entries adding afastmultiplier that would mispricespeed: "fast"requests on a model that has no fast modeKnown pre-existing issue, not touched here:
model_prices_and_context_window.jsonand the bundled backup already diverge on this branch in the snowflake entries; the new Fable 5 entries are byte-identical in both files and the new test asserts that parity for these entrieshttps://claude.ai/code/session_01MZarYYT3aS7DxaNjoax6Gm
Generated by Claude Code