Repository navigation
fix(bedrock): restore the eu.anthropic.claude-haiku-4-5-20251001-v1:0 model map row - #49375
Conversation
… model map row PR #49113 dropped this row without a stated reason while AWS still serves the EU inference profile. Without it, calls fall back to the base Haiku 4.5 row and bill at the non-regional price, and exact-key lookups in litellm.model_cost fail. Restores the row unchanged from 7aa0393 in both the root and backup maps. Fixes #49312
[Medium impact] The change reaches EU Bedrock users of one Haiku model profile. The restored row appears correct, but the required regression test must be added before merging Findings
SummaryRestores the EU Claude Haiku 4.5 row in both price files, including regional rates and model capabilities The restored row takes precedence over the base model fallback. A regression test is still required by the repository's test guide ryan-crabbe-berri explicitly identifies retaining the past ryan-crabbe-berri explicitly identifies missing additional price tiers as matching sibling rows. No separate failure was established ryan-crabbe-berri identifies price-sync guard limitations as follow-up work. This PR does not change the guard
Reviews (1) · Last reviewed commit: "fix(bedrock): restore the eu.anthropic.c..." · Reviewed by Greptile |
| "cache_creation_input_token_cost": 1e-06, | ||
| "prompt_cache_min_tokens": 2048 | ||
| }, | ||
| "eu.anthropic.claude-haiku-4-5-20251001-v1:0": { |
There was a problem hiding this comment.
EU billing lacks regression coverage
This restores the EU row without a test that catches its loss. AGENTS.md requires regression tests for bug fixes, so this requirement must be met before merging. Add a test that checks EU lookup and billing use the regional row. Derive expected costs from the local row rather than pinning vendor prices
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Merging this PR will not alter performance1 warning
Comparing |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
EU Bedrock users calling Claude Haiku 4.5 through the
eu.inference profile lost that model's entry in the price list when #49113 removed it with no reason given. AWS still serves the profile, so this puts the entry back exactly as it was. Since then their calls were billed at the cheaper non-EU price, and anything that looks the model up by its exact name failedDetails
TLDR
User Flow
Before: an admin routing to
bedrock/eu.anthropic.claude-haiku-4-5-20251001-v1:0sees the wrong price and a CI check that failsaws_region_name: eu-central-1x-litellm-response-costis 10% below the EU priceAfter: the same setup shows the EU model and bills at the EU price
aws_region_name: eu-central-1x-litellm-response-costmatches the EU priceRelevant issues
Fixes #49312
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Two proxies on the same config, one on the merge base and one on this branch, both calling real Bedrock in eu-central-1 with the local price list (
LITELLM_LOCAL_MODEL_COST_MAP=True). The tested commit was 7ea2cbf63c, which rebased onto current main as b274bbc with no change to the commit (git range-diffshows=) and no change to either price fileBefore (5029d02)
Model info
curl -s localhost:4319/model/info -H "Authorization: Bearer $LITELLM_KEY" | jq '.data[0].model_info | {key, input_cost_per_token, output_cost_per_token, cache_read_input_token_cost, max_output_tokens, supports_reasoning}'{ "key": "anthropic.claude-haiku-4-5-20251001-v1:0", "input_cost_per_token": 0.000001, "output_cost_per_token": 0.000005, "cache_read_input_token_cost": 1E-7, "max_output_tokens": 64000, "supports_reasoning": true }The EU id resolves to the non-EU base row
Chat completion cost
curl -si localhost:4319/v1/chat/completions -H "Authorization: Bearer $LITELLM_KEY" -H 'Content-Type: application/json' -d '{"model":"eu-haiku-4-5","messages":[{"role":"user","content":"Reply with the single word: pong"}],"max_tokens":10}'15 x $1.00/M + 5 x $5.00/M = $0.000040, the non-EU price
Exact key lookup
LITELLM_LOCAL_MODEL_COST_MAP=True python -c 'import litellm; print("eu.anthropic.claude-haiku-4-5-20251001-v1:0" in litellm.model_cost)'After (7ea2cbf63c)
Model info
curl -s localhost:4320/model/info -H "Authorization: Bearer $LITELLM_KEY" | jq '.data[0].model_info | {key, input_cost_per_token, output_cost_per_token, cache_read_input_token_cost, max_output_tokens, supports_reasoning}'{ "key": "eu.anthropic.claude-haiku-4-5-20251001-v1:0", "input_cost_per_token": 0.0000011, "output_cost_per_token": 0.0000055, "cache_read_input_token_cost": 1.1E-7, "max_output_tokens": 64000, "supports_reasoning": true }Chat completion cost
curl -si localhost:4320/v1/chat/completions -H "Authorization: Bearer $LITELLM_KEY" -H 'Content-Type: application/json' -d '{"model":"eu-haiku-4-5","messages":[{"role":"user","content":"Reply with the single word: pong"}],"max_tokens":10}'15 x $1.10/M + 5 x $5.50/M = $0.000044, the EU price for the same token counts
Exact key lookup
LITELLM_LOCAL_MODEL_COST_MAP=True python -c 'import litellm; print("eu.anthropic.claude-haiku-4-5-20251001-v1:0" in litellm.model_cost)'Type
🐛 Bug Fix
Caveats (if any)
Medium
eu.id pass with or without the row, since lookups fall back to the base rowLow
deprecation_dateof 2026-10-15, which has passed, like 340 other rows still in the map