Skip to content

fix(bedrock): restore the eu.anthropic.claude-haiku-4-5-20251001-v1:0 model map row - #49375

Merged
ryan-crabbe-berri merged 1 commit into
mainfrom
litellm_restore_eu_haiku_4_5_bedrock_row
Oct 31, 2026
Merged

ryan-crabbe-berri merged 1 commit into
mainfrom
litellm_restore_eu_haiku_4_5_bedrock_row

Conversation

@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor

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 failed

Details

TLDR

  • A recent price update deleted the EU Haiku 4.5 entry by mistake
  • AWS still offers that model in Europe, people still call it
  • Without the entry, EU calls got billed 10% too cheap
  • Tools that check "is this model in the list" started failing
  • This puts the entry back, word for word, in both price files

User Flow

Before: an admin routing to bedrock/eu.anthropic.claude-haiku-4-5-20251001-v1:0 sees the wrong price and a CI check that fails

  1. They add the model to their proxy config with aws_region_name: eu-central-1
  2. GET http://localhost:4000/model/info shows the non-EU base model, at $1.00 in and $5.00 out per million tokens
  3. POST http://localhost:4000/v1/chat/completions succeeds but x-litellm-response-cost is 10% below the EU price
  4. Their CI check that the model id exists in the price list fails

After: the same setup shows the EU model and bills at the EU price

  1. They add the model to their proxy config with aws_region_name: eu-central-1
  2. GET http://localhost:4000/model/info shows the EU model, at $1.10 in and $5.50 out per million tokens
  3. POST http://localhost:4000/v1/chat/completions succeeds and x-litellm-response-cost matches the EU price
  4. Their CI check that the model id exists in the price list passes

Relevant issues

Fixes #49312

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. 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 more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Delays 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-diff shows =) and no change to either price file

model_list:
  - model_name: eu-haiku-4-5
    litellm_params:
      model: bedrock/eu.anthropic.claude-haiku-4-5-20251001-v1:0
      aws_region_name: eu-central-1
      aws_profile_name: <aws sso profile>
general_settings:
  master_key: os.environ/LITELLM_KEY

Before (5029d02)

Model info

  1. 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

  1. 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}'
HTTP/1.1 200 OK
x-litellm-response-cost: 3.9999999999999996e-05
{"model":"eu-haiku-4-5","content":"pong","usage":{"prompt_tokens":15,"completion_tokens":5}}

15 x $1.00/M + 5 x $5.00/M = $0.000040, the non-EU price

Exact key lookup

  1. LITELLM_LOCAL_MODEL_COST_MAP=True python -c 'import litellm; print("eu.anthropic.claude-haiku-4-5-20251001-v1:0" in litellm.model_cost)'
False

After (7ea2cbf63c)

Model info

  1. 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

  1. 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}'
HTTP/1.1 200 OK
x-litellm-response-cost: 4.4e-05
{"model":"eu-haiku-4-5","content":"pong","usage":{"prompt_tokens":15,"completion_tokens":5}}

15 x $1.10/M + 5 x $5.50/M = $0.000044, the EU price for the same token counts

Exact key lookup

  1. LITELLM_LOCAL_MODEL_COST_MAP=True python -c 'import litellm; print("eu.anthropic.claude-haiku-4-5-20251001-v1:0" in litellm.model_cost)'
True

Type

🐛 Bug Fix

Caveats (if any)

Medium

  • No new regression test for this row
  • Price sync PRs may still remove models without the cost map guard flagging it
    • The guard blocks removals only on the sync bot's own branches, worth a follow-up

Low

  • The row keeps its deprecation_date of 2026-10-15, which has passed, like 340 other rows still in the map
  • No Priority, Flex or Batch backfill added, matching the sibling Haiku 4.5 rows

… 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
@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai

@greptile-apps

greptile-apps Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[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

  1. P2 EU billing lacks regression coverage ▶

Summary

Restores 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 deprecation_date of 2026-10-15. Bedrock models are not hidden by this date, and the evidence does not establish that it is wrong

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

  • EU Haiku lookups find a separate record with regional pricing.

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": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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!

@codspeed

codspeed Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 43 untouched benchmarks


Comparing litellm_restore_eu_haiku_4_5_bedrock_row (b274bbc) with main (87d91d7)

Open in CodSpeed

@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: eu.anthropic.claude-haiku-4-5-20251001-v1:0 removed from the model map in #49113, but AWS still serves this EU inference profile

2 participants