fix(pricing): add unversioned vertex_ai/claude-haiku-4-5 entry#24567
Conversation
Missing unversioned entry causes cost tracking to return $0.00 for all requests using vertex_ai/claude-haiku-4-5. All other Vertex AI Claude models have both versioned and unversioned entries.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR adds a missing unversioned
Confidence Score: 5/5Safe to merge — purely additive JSON data change with no logic modifications. The change is a minimal, isolated data fix that mirrors an already-existing versioned entry. All pricing values and capability flags are internally consistent. Both JSON files are updated in sync. No logic, authentication, or critical-path code is touched. The missing test is the only process concern, but for a pure JSON pricing entry it does not introduce any runtime risk. No files require special attention.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds unversioned vertex_ai/claude-haiku-4-5 entry with values that exactly mirror the versioned @20251001 entry — pricing, context window, and capability flags are all consistent. |
| litellm/model_prices_and_context_window_backup.json | Identical change applied to the backup JSON; both files are kept in sync as expected. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Caller uses\nvertex_ai/claude-haiku-4-5"] --> B{Lookup in\nmodel_prices JSON}
B -- "Before this PR\n(entry missing)" --> C["No match → cost = $0.00"]
B -- "After this PR\n(entry added)" --> D["Match found\nvertex_ai/claude-haiku-4-5"]
D --> E["Correct pricing returned\ninput: $1/M · output: $5/M"]
Reviews (2): Last reviewed commit: "Merge branch 'main' of github.com:BerriA..." | Re-trigger Greptile
78e6e69
into
BerriAI:litellm_ishaan_march30
Relevant issues
N/A
Pre-Submission checklist
tests/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unit@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewType
🐛 Bug Fix
Changes
Add unversioned
vertex_ai/claude-haiku-4-5pricing entry to bothmodel_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json.Currently only
vertex_ai/claude-haiku-4-5@20251001exists, which causes cost tracking to return$0.00when usingvertex_ai/claude-haiku-4-5as the model name. All other Vertex AI Claude models have both versioned and unversioned entries (e.g.vertex_ai/claude-opus-4-5,vertex_ai/claude-sonnet-4-5).