The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: align Vertex AI Claude deprecations with Google's schedule
Chesars1a3fdc7ae391
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex d9ba7eb0cc5..16a9e52825e 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -29768,7 +29768,7 @@"supports_tool_choice": true,"supports_vision": true},- "vertex_ai/claude-3-5-sonnet-v2": {+ "vertex_ai/claude-3-5-sonnet@20240620": {"input_cost_per_token": 3e-06,"litellm_provider": "vertex_ai-anthropic_models","max_input_tokens": 200000,@@ -29777,13 +29777,15 @@"mode": "chat","output_cost_per_token": 1.5e-05,"supports_assistant_prefill": true,- "supports_computer_use": true,"supports_function_calling": true,"supports_pdf_input": true,"supports_tool_choice": true,"supports_vision": true},- "vertex_ai/claude-3-5-sonnet-v2@20241022": {+ "vertex_ai/claude-3-7-sonnet@20250219": {+ "cache_creation_input_token_cost": 3.75e-06,+ "cache_read_input_token_cost": 3e-07,+ "deprecation_date": "2026-05-11","input_cost_per_token": 3e-06,"litellm_provider": "vertex_ai-anthropic_models","max_input_tokens": 200000,@@ -29795,22 +29797,12 @@"supports_computer_use": true,"supports_function_calling": true,"supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,"supports_tool_choice": true,- "supports_vision": true- },- "vertex_ai/claude-3-5-sonnet@20240620": {- "input_cost_per_token": 3e-06,- "litellm_provider": "vertex_ai-anthropic_models",- "max_input_tokens": 200000,- "max_output_tokens": 8192,- "max_tokens": 8192,- "mode": "chat",- "output_cost_per_token": 1.5e-05,- "supports_assistant_prefill": true,- "supports_function_calling": true,- "supports_pdf_input": true,- "supports_tool_choice": true,- "supports_vision": true+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159},"vertex_ai/claude-3-haiku": {"input_cost_per_token": 2.5e-07,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 3006d91f785..e4e96b02a8a 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -29842,7 +29842,7 @@"supports_tool_choice": true,"supports_vision": true},- "vertex_ai/claude-3-5-sonnet-v2": {+ "vertex_ai/claude-3-5-sonnet@20240620": {"input_cost_per_token": 3e-06,"litellm_provider": "vertex_ai-anthropic_models","max_input_tokens": 200000,@@ -29851,13 +29851,15 @@"mode": "chat","output_cost_per_token": 1.5e-05,"supports_assistant_prefill": true,- "supports_computer_use": true,"supports_function_calling": true,"supports_pdf_input": true,"supports_tool_choice": true,"supports_vision": true},- "vertex_ai/claude-3-5-sonnet-v2@20241022": {+ "vertex_ai/claude-3-7-sonnet@20250219": {+ "cache_creation_input_token_cost": 3.75e-06,+ "cache_read_input_token_cost": 3e-07,+ "deprecation_date": "2026-05-11","input_cost_per_token": 3e-06,"litellm_provider": "vertex_ai-anthropic_models","max_input_tokens": 200000,@@ -29869,22 +29871,12 @@"supports_computer_use": true,"supports_function_calling": true,"supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,"supports_tool_choice": true,- "supports_vision": true- },- "vertex_ai/claude-3-5-sonnet@20240620": {- "input_cost_per_token": 3e-06,- "litellm_provider": "vertex_ai-anthropic_models",- "max_input_tokens": 200000,- "max_output_tokens": 8192,- "max_tokens": 8192,- "mode": "chat",- "output_cost_per_token": 1.5e-05,- "supports_assistant_prefill": true,- "supports_function_calling": true,- "supports_pdf_input": true,- "supports_tool_choice": true,- "supports_vision": true+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159},"vertex_ai/claude-3-haiku": {"input_cost_per_token": 2.5e-07,diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.pyindex 60c218c7f96..44b7ffb30d8 100644--- a/tests/test_litellm/test_utils.py+++ b/tests/test_litellm/test_utils.py@@ -444,7 +444,6 @@ def test_anthropic_web_search_in_model_info():supported_models = ["anthropic/claude-4-sonnet-20250514","anthropic/claude-sonnet-4-5-20250929",- "anthropic/claude-3-7-sonnet-20250219",]for model in supported_models:from litellm.utils import get_model_info