Skip to content

fix(pricing): add missing cache_read_input_token_cost for azure/us/ a… - #37827

Closed
syahra712 wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
syahra712:fix/azure-data-zone-gpt4o-cache-read-cost
Closed

syahra712 wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
syahra712:fix/azure-data-zone-gpt4o-cache-read-cost

Conversation

@syahra712

@syahra712 syahra712 commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

What this fixes

azure/us/gpt-4o-2024-11-20 and azure/eu/gpt-4o-2024-11-20 are missing cache_read_input_token_cost in model_prices_and_context_window.json. Every other azure data-zone gpt-4o entry carries this field at 1.375e-06 (1.1x the OpenAI base rate of 1.25e-06), but these two were never populated — so cached prompt tokens resolve to $0 in billing.

Change

Added cache_read_input_token_cost: 1.375e-06 to both entries, matching the pattern from azure/us/gpt-4o-2024-08-06 and azure/eu/gpt-4o-2024-08-06.

Verification

model input_cost cache_read (before) cache_read (after)
azure/us/gpt-4o-2024-11-20 2.75e-06 None 1.375e-06
azure/eu/gpt-4o-2024-11-20 2.75e-06 None 1.375e-06
azure/us/gpt-4o-2024-08-06 (control) 2.75e-06 1.375e-06 —

Fixes #37823

…nd azure/eu/ gpt-4o-2024-11-20

These two data-zone entries had cache_creation_input_token_cost but were
missing cache_read_input_token_cost, so cached prompt tokens resolved to
$0.  Set to 1.375e-06 (1.1× the OpenAI base rate of 1.25e-06), matching
every other azure/us/ and azure/eu/ gpt-4o entry.

Fixes BerriAI#37823
@syahra712
syahra712 requested a review from mateo-berri as a code owner August 21, 2026 11:58
@greptile-apps

greptile-apps Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds missing cache-read token pricing for the Azure EU and US variants of gpt-4o-2024-11-20.

  • Sets both regional cache-read rates to $1.375 per million tokens.
  • Aligns the new values with existing Azure EU/US gpt-4o pricing.

Confidence Score: 4/5

The pricing change appears safe to merge, with the non-blocking concern that its regional billing behavior has no accompanying verification.

The added rates align with existing Azure EU and US gpt-4o entries, and no concrete pricing defect was established; only regression evidence is missing.

Files Needing Attention: model_prices_and_context_window.json

Important Files Changed

Filename Overview
model_prices_and_context_window.json Adds consistent cache-read pricing to two regional Azure model entries, but the fix lacks focused verification.

Reviews (1): Last reviewed commit: "fix(pricing): add missing cache_read_inp..." | Re-trigger Greptile

"supports_vision": true
},
"azure/eu/gpt-4o-2024-11-20": {
"cache_read_input_token_cost": 1.375e-06,

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 Unverified regional cache pricing

This pricing fix changes cache-read billing for the Azure EU and US model entries without a focused test or verification artifact, leaving future regressions in regional lookup and billing behavior uncovered.

Rule Used: What: Ensure that any PR claiming to fix an issue ... (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!

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

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]: azure/us/ and azure/eu/ gpt-4o-2024-11-20 missing cache_read_input_token_cost at present cache reads billed at zero

1 participant