litellm - 💡(How to fix) Fix [Bug]: Regional inference profile prefix stripped when storing Bedrock model, causing wrong-region prices in UI [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#27612Fetched 2026-05-11 03:13:52
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Code Example

-
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

Adding an AWS Bedrock regional inference profile via the UI (e.g. bedrock/au.anthropic.claude-sonnet-4-5-20250929-v1:0) strips the au. prefix when storing the model. LiteLLM then auto-populates pricing from the us-east-1 registry entry instead of the regional one. Billing is correct (request-time lookup uses the full regional key), but the UI and the cost_breakdown.cache_creation_cost field show wrong-region values.

<img width="2724" height="1142" alt="Image" src="https://github.com/user-attachments/assets/439597a3-f6eb-43e0-811a-9b8cf9adf631" />

Steps to Reproduce

  1. Add a model with litellm_model = bedrock/au.anthropic.claude-sonnet-4-5-20250929-v1:0. Don't enter manual prices.
  2. Check the stored record and the model detail page.

Stored record (note the stripped key): { "key": "anthropic.claude-sonnet-4-5-20250929-v1:0", "input_cost_per_token": 0.000003, "output_cost_per_token": 0.000015, "cache_creation_input_token_cost": 0.00000375 } model_map_value resolved at request time (correct): { "key": "au.anthropic.claude-sonnet-4-5-20250929-v1:0", "input_cost_per_token": 0.0000033, "output_cost_per_token": 0.0000165, "cache_creation_input_token_cost": 0.000004125 }

Relevant log output

-

What part of LiteLLM is this about?

UI Dashboard

What LiteLLM version are you on ?

v1.83.14

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: Regional inference profile prefix stripped when storing Bedrock model, causing wrong-region prices in UI [1 participants]