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
Add anthropic3-7-sonnet (#8766)
Dragos Campean2905ad98b34a
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex d3d3dd0d4b5..d814884937f 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -338,6 +338,7 @@ config_path = Nonevertex_ai_safety_settings: Optional[dict] = NoneBEDROCK_CONVERSE_MODELS = ["anthropic.claude-3-5-haiku-20241022-v1:0",+ "anthropic.claude-3-7-sonnet-20250219-v1:0","anthropic.claude-3-5-sonnet-20241022-v2:0","anthropic.claude-3-5-sonnet-20240620-v1:0","anthropic.claude-3-opus-20240229-v1:0",diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 5e8d9353ad9..12e12a80d6f 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -2803,6 +2803,25 @@"deprecation_date": "2025-06-01","supports_tool_choice": true},+ "claude-3-7-sonnet-20250219": {+ "max_tokens": 8192,+ "max_input_tokens": 200000,+ "max_output_tokens": 8192,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "cache_creation_input_token_cost": 0.00000375,+ "cache_read_input_token_cost": 0.0000003,+ "litellm_provider": "anthropic",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_assistant_prefill": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "deprecation_date": "2025-06-01",+ "supports_tool_choice": true+ },"claude-3-5-sonnet-20241022": {"max_tokens": 8192,"max_input_tokens": 200000,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 5e8d9353ad9..81536a2d39f 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -2803,6 +2803,25 @@"deprecation_date": "2025-06-01","supports_tool_choice": true},+ "claude-3-7-sonnet-20250219": {+ "max_tokens": 8192,+ "max_input_tokens": 200000,+ "max_output_tokens": 8192,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "cache_creation_input_token_cost": 0.00000375,+ "cache_read_input_token_cost": 0.0000003,+ "litellm_provider": "anthropic",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_assistant_prefill": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "deprecation_date": "2025-06-01",+ "supports_tool_choice": true+ },"claude-3-5-sonnet-20241022": {"max_tokens": 8192,"max_input_tokens": 200000,@@ -6319,6 +6338,21 @@"supports_vision": true,"supports_tool_choice": true},+ "anthropic.claude-3-7-sonnet-20250219-v1:0": {+ "max_tokens": 8192,+ "max_input_tokens": 200000,+ "max_output_tokens": 8192,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "litellm_provider": "bedrock",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "supports_assistant_prefill": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },"anthropic.claude-3-5-sonnet-20241022-v2:0": {"max_tokens": 8192,"max_input_tokens": 200000,diff --git a/tests/local_testing/whitelisted_bedrock_models.txt b/tests/local_testing/whitelisted_bedrock_models.txtindex ef353f5ae35..8ad500b4c55 100644--- a/tests/local_testing/whitelisted_bedrock_models.txt+++ b/tests/local_testing/whitelisted_bedrock_models.txt@@ -20,6 +20,7 @@ bedrock/us-west-2/mistral.mistral-large-2402-v1:0bedrock/eu-west-3/mistral.mistral-large-2402-v1:0anthropic.claude-3-sonnet-20240229-v1:0anthropic.claude-3-5-sonnet-20240620-v1:0+anthropic.claude-3-7-sonnet-20250219-v1:0anthropic.claude-3-5-sonnet-20241022-v2:0anthropic.claude-3-haiku-20240307-v1:0anthropic.claude-3-5-haiku-20241022-v1:0