fix(model-prices): remove duplicate vertex_ai/gemini-embedding-2-preview entry#23599
Merged
Chesars merged 1 commit intoBerriAI:litellm_oss_staging_03_13_2026from Mar 14, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryThis PR removes a duplicate Changes:
Notes:
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Removes a duplicate vertex_ai/gemini-embedding-2-preview key that was silently overwriting the complete multimodal pricing entry. The kept entry (sourced from Vertex AI pricing, input_cost_per_token: 2e-07) includes audio/image/video unit costs and supports_multimodal: true; the removed entry lacked those pricing dimensions and referenced a lower token rate (1.5e-07) from the Gemini API docs. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[JSON Parse Start] --> B["1st occurrence of vertex_ai/gemini-embedding-2-preview\nFull multimodal pricing: audio, image, video, token\nsupports_multimodal: true\nSource: Vertex AI pricing"]
B --> C["2nd occurrence of vertex_ai/gemini-embedding-2-preview\nText-only token pricing\nSource: Gemini API docs"]
C -- "Silent overwrite - JSON duplicate key behaviour" --> D["BEFORE: Only 2nd entry survives\nMultimodal pricing lost"]
E["After PR fix: single vertex_ai/gemini-embedding-2-preview entry\nFull multimodal pricing preserved"] --> F["Correct pricing returned to callers"]
Last reviewed commit: 07d0129
…iew entry Fixes BerriAI#23578 The key "vertex_ai/gemini-embedding-2-preview" appeared twice in the JSON with different pricing. In JSON, duplicate keys cause the second to silently overwrite the first. Removed the second (text-only) entry and kept the first which has complete multimodal pricing (audio, image, video) sourced from Vertex AI pricing docs.
925e258 to
07d0129
Compare
f82f4a1
into
BerriAI:litellm_oss_staging_03_13_2026
3 of 4 checks passed
ndgigliotti
added a commit
to ndgigliotti/litellm
that referenced
this pull request
Mar 17, 2026
…I#23599 Main has two duplicate keys for vertex_ai/gemini-embedding-2-preview. Our JSON round-trip collapsed them to the second (text-only) entry, but PR BerriAI#23599 intentionally keeps the first (multimodal pricing) entry. Restore the multimodal entry to avoid conflicts.
4 tasks
ndgigliotti
added a commit
to ndgigliotti/litellm
that referenced
this pull request
Mar 17, 2026
…I#23599 Main has two duplicate keys for vertex_ai/gemini-embedding-2-preview. Our JSON round-trip collapsed them to the second (text-only) entry, but PR BerriAI#23599 intentionally keeps the first (multimodal pricing) entry. Restore the multimodal entry to avoid conflicts.
ndgigliotti
added a commit
to ndgigliotti/litellm
that referenced
this pull request
Mar 21, 2026
…I#23599 Main has two duplicate keys for vertex_ai/gemini-embedding-2-preview. Our JSON round-trip collapsed them to the second (text-only) entry, but PR BerriAI#23599 intentionally keeps the first (multimodal pricing) entry. Restore the multimodal entry to avoid conflicts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relevant issues
Fixes #23578
Pre-Submission checklist
tests/test_litellm/directory, Adding at least 1 test is a hard requirement - see details — N/A: JSON-only data change, no code logic affectedmake test-unitType
🐛 Bug Fix
Changes
The key
"vertex_ai/gemini-embedding-2-preview"appeared twice inmodel_prices_and_context_window.jsonwith different pricing values. In JSON, duplicate keys cause the second entry to silently overwrite the first, which led to the more complete multimodal pricing (audio, image, video) being lost.Removed: The second entry (text-only, sourced from Gemini API docs)
Kept: The first entry with complete multimodal pricing sourced from Vertex AI pricing