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 claude 3 5 sonnet 20241022 models for all provides (#6380)
David Manouchehri7939e930ff5b
diff --git a/litellm/llms/bedrock/chat/converse_handler.py b/litellm/llms/bedrock/chat/converse_handler.pyindex 305bd86cee4..b775cc64cba 100644--- a/litellm/llms/bedrock/chat/converse_handler.py+++ b/litellm/llms/bedrock/chat/converse_handler.py@@ -19,6 +19,7 @@ from ..common_utils import BedrockErrorfrom .invoke_handler import AWSEventStreamDecoder, MockResponseIterator, make_callBEDROCK_CONVERSE_MODELS = [+ "anthropic.claude-3-5-sonnet-20241022-v2:0","anthropic.claude-3-5-sonnet-20240620-v1:0","anthropic.claude-3-opus-20240229-v1:0","anthropic.claude-3-sonnet-20240229-v1:0",diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 4f221d58aba..e6374180494 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -2594,6 +2594,18 @@"supports_vision": true,"supports_assistant_prefill": true},+ "vertex_ai/claude-3-5-sonnet-v2@20241022": {+ "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": "vertex_ai-anthropic_models",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "supports_assistant_prefill": true+ },"vertex_ai/claude-3-haiku@20240307": {"max_tokens": 4096,"max_input_tokens": 200000,@@ -3588,6 +3600,22 @@"supports_vision": true,"tool_use_system_prompt_tokens": 264},+ "anthropic/claude-3-5-sonnet-20241022": {+ "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+ },"openrouter/anthropic/claude-3.5-sonnet": {"max_tokens": 8192,"max_input_tokens": 200000,@@ -4262,6 +4290,17 @@"supports_function_calling": true,"supports_vision": true},+ "anthropic.claude-3-5-sonnet-20241022-v2:0": {+ "max_tokens": 4096,+ "max_input_tokens": 200000,+ "max_output_tokens": 4096,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "litellm_provider": "bedrock",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true+ },"anthropic.claude-3-haiku-20240307-v1:0": {"max_tokens": 4096,"max_input_tokens": 200000,@@ -4306,6 +4345,17 @@"supports_function_calling": true,"supports_vision": true},+ "us.anthropic.claude-3-5-sonnet-20241022-v2:0": {+ "max_tokens": 4096,+ "max_input_tokens": 200000,+ "max_output_tokens": 4096,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "litellm_provider": "bedrock",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true+ },"us.anthropic.claude-3-haiku-20240307-v1:0": {"max_tokens": 4096,"max_input_tokens": 200000,@@ -4350,6 +4400,17 @@"supports_function_calling": true,"supports_vision": true},+ "eu.anthropic.claude-3-5-sonnet-20241022-v2:0": {+ "max_tokens": 4096,+ "max_input_tokens": 200000,+ "max_output_tokens": 4096,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "litellm_provider": "bedrock",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true+ },"eu.anthropic.claude-3-haiku-20240307-v1:0": {"max_tokens": 4096,"max_input_tokens": 200000,