-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
fix: correct wandb model prices (off by 100,000x) #23517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -14527,17 +14527,14 @@ | |||||||||
| "uses_embed_content": true | ||||||||||
| }, | ||||||||||
| "vertex_ai/gemini-embedding-2-preview": { | ||||||||||
| "input_cost_per_audio_per_second": 0.00016, | ||||||||||
| "input_cost_per_image": 0.00012, | ||||||||||
| "input_cost_per_token": 2e-07, | ||||||||||
| "input_cost_per_video_per_second": 0.00079, | ||||||||||
| "input_cost_per_token": 1.5e-07, | ||||||||||
| "litellm_provider": "vertex_ai", | ||||||||||
| "max_input_tokens": 8192, | ||||||||||
| "max_tokens": 8192, | ||||||||||
| "mode": "embedding", | ||||||||||
| "output_cost_per_token": 0, | ||||||||||
| "output_vector_size": 3072, | ||||||||||
| "source": "https://cloud.google.com/vertex-ai/generative-ai/pricing", | ||||||||||
| "source": "https://ai.google.dev/gemini-api/docs/embeddings#multimodal", | ||||||||||
| "supports_multimodal": true, | ||||||||||
| "uses_embed_content": true | ||||||||||
| }, | ||||||||||
|
|
@@ -14554,18 +14551,6 @@ | |||||||||
| "source": "https://cloud.google.com/vertex-ai/generative-ai/pricing", | ||||||||||
| "uses_embed_content": true | ||||||||||
| }, | ||||||||||
| "vertex_ai/gemini-embedding-2-preview": { | ||||||||||
| "input_cost_per_token": 1.5e-07, | ||||||||||
| "litellm_provider": "vertex_ai", | ||||||||||
| "max_input_tokens": 8192, | ||||||||||
| "max_tokens": 8192, | ||||||||||
| "mode": "embedding", | ||||||||||
| "output_cost_per_token": 0, | ||||||||||
| "output_vector_size": 3072, | ||||||||||
| "source": "https://ai.google.dev/gemini-api/docs/embeddings#multimodal", | ||||||||||
| "supports_multimodal": true, | ||||||||||
| "uses_embed_content": true | ||||||||||
| }, | ||||||||||
| "gemini/gemini-embedding-001": { | ||||||||||
| "input_cost_per_token": 1.5e-07, | ||||||||||
| "litellm_provider": "gemini", | ||||||||||
|
|
@@ -30938,7 +30923,9 @@ | |||||||||
| "mode": "chat", | ||||||||||
| "output_cost_per_token": 3.2e-06, | ||||||||||
| "source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#glm-models", | ||||||||||
| "supported_regions": ["global"], | ||||||||||
| "supported_regions": [ | ||||||||||
| "global" | ||||||||||
| ], | ||||||||||
| "supports_function_calling": true, | ||||||||||
| "supports_prompt_caching": true, | ||||||||||
| "supports_reasoning": true, | ||||||||||
|
|
@@ -31438,53 +31425,53 @@ | |||||||||
| "max_tokens": 131072, | ||||||||||
| "max_input_tokens": 131072, | ||||||||||
| "max_output_tokens": 131072, | ||||||||||
| "input_cost_per_token": 0.015, | ||||||||||
| "output_cost_per_token": 0.06, | ||||||||||
| "input_cost_per_token": 1.5e-07, | ||||||||||
| "output_cost_per_token": 6e-07, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/openai/gpt-oss-20b": { | ||||||||||
| "max_tokens": 131072, | ||||||||||
| "max_input_tokens": 131072, | ||||||||||
| "max_output_tokens": 131072, | ||||||||||
| "input_cost_per_token": 0.005, | ||||||||||
| "output_cost_per_token": 0.02, | ||||||||||
| "input_cost_per_token": 5e-08, | ||||||||||
| "output_cost_per_token": 2e-07, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/zai-org/GLM-4.5": { | ||||||||||
| "max_tokens": 131072, | ||||||||||
| "max_input_tokens": 131072, | ||||||||||
| "max_output_tokens": 131072, | ||||||||||
| "input_cost_per_token": 0.055, | ||||||||||
| "output_cost_per_token": 0.2, | ||||||||||
| "input_cost_per_token": 5.5e-07, | ||||||||||
| "output_cost_per_token": 2e-06, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/Qwen/Qwen3-235B-A22B-Instruct-2507": { | ||||||||||
| "max_tokens": 262144, | ||||||||||
| "max_input_tokens": 262144, | ||||||||||
| "max_output_tokens": 262144, | ||||||||||
| "input_cost_per_token": 0.01, | ||||||||||
| "output_cost_per_token": 0.01, | ||||||||||
| "input_cost_per_token": 1e-07, | ||||||||||
| "output_cost_per_token": 1e-07, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/Qwen/Qwen3-Coder-480B-A35B-Instruct": { | ||||||||||
| "max_tokens": 262144, | ||||||||||
| "max_input_tokens": 262144, | ||||||||||
| "max_output_tokens": 262144, | ||||||||||
| "input_cost_per_token": 0.1, | ||||||||||
| "output_cost_per_token": 0.15, | ||||||||||
| "input_cost_per_token": 1e-06, | ||||||||||
| "output_cost_per_token": 1.5e-06, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/Qwen/Qwen3-235B-A22B-Thinking-2507": { | ||||||||||
| "max_tokens": 262144, | ||||||||||
| "max_input_tokens": 262144, | ||||||||||
| "max_output_tokens": 262144, | ||||||||||
| "input_cost_per_token": 0.01, | ||||||||||
| "output_cost_per_token": 0.01, | ||||||||||
| "input_cost_per_token": 1e-07, | ||||||||||
| "output_cost_per_token": 1e-07, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
|
|
@@ -31501,62 +31488,62 @@ | |||||||||
| "max_tokens": 128000, | ||||||||||
| "max_input_tokens": 128000, | ||||||||||
| "max_output_tokens": 128000, | ||||||||||
| "input_cost_per_token": 0.022, | ||||||||||
| "output_cost_per_token": 0.022, | ||||||||||
| "input_cost_per_token": 2.1999999999999998e-07, | ||||||||||
| "output_cost_per_token": 2.1999999999999998e-07, | ||||||||||
|
Comment on lines
+31491
to
+31492
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Floating-point precision artifacts Several corrected values contain floating-point representation artifacts rather than clean scientific notation. These arise from computing The same issue also appears at:
These should be rounded to the same precision used in the PR description's table:
Suggested change
|
||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/deepseek-ai/DeepSeek-V3.1": { | ||||||||||
| "max_tokens": 128000, | ||||||||||
| "max_input_tokens": 128000, | ||||||||||
| "max_output_tokens": 128000, | ||||||||||
| "input_cost_per_token": 0.055, | ||||||||||
| "output_cost_per_token": 0.165, | ||||||||||
| "input_cost_per_token": 5.5e-07, | ||||||||||
| "output_cost_per_token": 1.65e-06, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/deepseek-ai/DeepSeek-R1-0528": { | ||||||||||
| "max_tokens": 161000, | ||||||||||
| "max_input_tokens": 161000, | ||||||||||
| "max_output_tokens": 161000, | ||||||||||
| "input_cost_per_token": 0.135, | ||||||||||
| "output_cost_per_token": 0.54, | ||||||||||
| "input_cost_per_token": 1.35e-06, | ||||||||||
| "output_cost_per_token": 5.4e-06, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/deepseek-ai/DeepSeek-V3-0324": { | ||||||||||
| "max_tokens": 161000, | ||||||||||
| "max_input_tokens": 161000, | ||||||||||
| "max_output_tokens": 161000, | ||||||||||
| "input_cost_per_token": 0.114, | ||||||||||
| "output_cost_per_token": 0.275, | ||||||||||
| "input_cost_per_token": 1.14e-06, | ||||||||||
| "output_cost_per_token": 2.7500000000000004e-06, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/meta-llama/Llama-3.3-70B-Instruct": { | ||||||||||
| "max_tokens": 128000, | ||||||||||
| "max_input_tokens": 128000, | ||||||||||
| "max_output_tokens": 128000, | ||||||||||
| "input_cost_per_token": 0.071, | ||||||||||
| "output_cost_per_token": 0.071, | ||||||||||
| "input_cost_per_token": 7.1e-07, | ||||||||||
| "output_cost_per_token": 7.1e-07, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/meta-llama/Llama-4-Scout-17B-16E-Instruct": { | ||||||||||
| "max_tokens": 64000, | ||||||||||
| "max_input_tokens": 64000, | ||||||||||
| "max_output_tokens": 64000, | ||||||||||
| "input_cost_per_token": 0.017, | ||||||||||
| "output_cost_per_token": 0.066, | ||||||||||
| "input_cost_per_token": 1.7000000000000001e-07, | ||||||||||
| "output_cost_per_token": 6.6e-07, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
| "wandb/microsoft/Phi-4-mini-instruct": { | ||||||||||
| "max_tokens": 128000, | ||||||||||
| "max_input_tokens": 128000, | ||||||||||
| "max_output_tokens": 128000, | ||||||||||
| "input_cost_per_token": 0.008, | ||||||||||
| "output_cost_per_token": 0.035, | ||||||||||
| "input_cost_per_token": 8e-08, | ||||||||||
| "output_cost_per_token": 3.5000000000000004e-07, | ||||||||||
| "litellm_provider": "wandb", | ||||||||||
| "mode": "chat" | ||||||||||
| }, | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undocumented vertex_ai/gemini-embedding-2-preview changes
This PR fixes wandb prices, but it also silently modifies
vertex_ai/gemini-embedding-2-previewin two ways that are not mentioned in the PR description or title:Removes multimodal pricing fields —
input_cost_per_audio_per_second: 0.00016,input_cost_per_image: 0.00012, andinput_cost_per_video_per_second: 0.00079are dropped. Any code path that usesget_model_infoto calculate multimodal embedding costs for this model will silently returnNone/0instead of the correct cost.Changes
input_cost_per_tokenfrom2e-07to1.5e-07— a ~25% price reduction with no cited justification in the PR (the source URL also changes from the Vertex AI pricing page to the Gemini API docs).These look like they may be side effects of resolving a duplicate-key situation in the JSON (there were previously two
"vertex_ai/gemini-embedding-2-preview"entries). If the intent is to consolidate to the second entry's values, please document this in the PR description and confirm whether removing the multimodal pricing fields is intentional.