Skip to content

fix(pricing): add unversioned vertex_ai/claude-haiku-4-5 entry#24567

Merged
ishaan-berri merged 2 commits intoBerriAI:litellm_ishaan_march30from
Isydmr:fix/vertex-ai-haiku-4-5-pricing
Mar 30, 2026
Merged

fix(pricing): add unversioned vertex_ai/claude-haiku-4-5 entry#24567
ishaan-berri merged 2 commits intoBerriAI:litellm_ishaan_march30from
Isydmr:fix/vertex-ai-haiku-4-5-pricing

Conversation

@Isydmr
Copy link
Copy Markdown
Contributor

@Isydmr Isydmr commented Mar 25, 2026

Relevant issues

N/A

Pre-Submission checklist

  • I have Added testing in the tests/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem
  • I have requested a Greptile review by commenting @greptileai and received a Confidence Score of at least 4/5 before requesting a maintainer review

Type

🐛 Bug Fix

Changes

Add unversioned vertex_ai/claude-haiku-4-5 pricing entry to both model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json.

Currently only vertex_ai/claude-haiku-4-5@20251001 exists, which causes cost tracking to return $0.00 when using vertex_ai/claude-haiku-4-5 as 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).

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.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview, Comment Mar 30, 2026 1:30pm

Request Review

@codspeed-hq
Copy link
Copy Markdown
Contributor

codspeed-hq bot commented Mar 25, 2026

Merging this PR will not alter performance

✅ 16 untouched benchmarks


Comparing Isydmr:fix/vertex-ai-haiku-4-5-pricing (da5b338) with main (5812053)

Open in CodSpeed

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 25, 2026

Greptile Summary

This PR adds a missing unversioned vertex_ai/claude-haiku-4-5 pricing entry to both model_prices_and_context_window.json and its backup, fixing $0.00 cost tracking when callers pass the model name without a version suffix.

  • The new entry is an exact copy of the existing vertex_ai/claude-haiku-4-5@20251001 entry (pricing, context window, and all capability flags match).
  • Both JSON files are updated identically, keeping them in sync.
  • No tests were added; the pre-submission checklist item for tests is unchecked. While the change is purely additive data, the project's stated requirement is at least one accompanying test.
  • The PR description provides a clear summary of the problem and the fix, satisfying the traceability requirement from the contributing guidelines.

Confidence Score: 5/5

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

Important Files Changed

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"]
Loading

Reviews (2): Last reviewed commit: "Merge branch 'main' of github.com:BerriA..." | Re-trigger Greptile

@ishaan-berri ishaan-berri changed the base branch from main to litellm_ishaan_march30 March 30, 2026 20:18
@ishaan-berri ishaan-berri merged commit 78e6e69 into BerriAI:litellm_ishaan_march30 Mar 30, 2026
55 of 61 checks passed
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.

2 participants