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
Merge branch 'main' into litellm_sonnet_4_6_feat
Sameer Kankutef6d3919a6691
diff --cc litellm/llms/bedrock/chat/converse_transformation.pyindex e3d73e1e335,4197fdac6c4..daac3e6a008--- a/litellm/llms/bedrock/chat/converse_transformation.py+++ b/litellm/llms/bedrock/chat/converse_transformation.py@@@ -1125,18 -1277,45 +1277,40 @@@ class AmazonConverseConfig(BaseConfig)# "computer-use-2025-01-24" for Claude Sonnet 4.5, Haiku 4.5, Opus 4.1, Sonnet 4, Opus 4, and Sonnet 3.7# "computer-use-2024-10-22" for older modelsmodel_lower = model.lower()- if (- "opus-4.6" in model_lower- or "opus_4.6" in model_lower- or "opus-4-6" in model_lower- or "opus_4_6" in model_lower- ):+ if "opus-4.6" in model_lower or "opus_4.6" in model_lower or "opus-4-6" in model_lower or "opus_4_6" in model_lower or "sonnet-4.6" in model_lower or "sonnet_4.6" in model_lower or "sonnet-4-6" in model_lower or "sonnet_4_6" in model_lower:computer_use_header = "computer-use-2025-11-24"- elif "opus-4.5" in model_lower or "opus_4.5" in model_lower or "opus-4-5" in model_lower or "opus_4_5" in model_lower:+ elif (+ "opus-4.5" in model_lower+ or "opus_4.5" in model_lower+ or "opus-4-5" in model_lower+ or "opus_4_5" in model_lower+ ):computer_use_header = "computer-use-2025-11-24"- elif any(pattern in model_lower for pattern in [- "sonnet-4.5", "sonnet_4.5", "sonnet-4-5", "sonnet_4_5",- "haiku-4.5", "haiku_4.5", "haiku-4-5", "haiku_4_5",- "opus-4.1", "opus_4.1", "opus-4-1", "opus_4_1",- "sonnet-4", "sonnet_4",- "opus-4", "opus_4",- "sonnet-3.7", "sonnet_3.7", "sonnet-3-7", "sonnet_3_7"- ]):+ elif any(+ pattern in model_lower+ for pattern in [+ "sonnet-4.5",+ "sonnet_4.5",+ "sonnet-4-5",+ "sonnet_4_5",+ "haiku-4.5",+ "haiku_4.5",+ "haiku-4-5",+ "haiku_4_5",+ "opus-4.1",+ "opus_4.1",+ "opus-4-1",+ "opus_4_1",+ "sonnet-4",+ "sonnet_4",+ "opus-4",+ "opus_4",+ "sonnet-3.7",+ "sonnet_3.7",+ "sonnet-3-7",+ "sonnet_3_7",+ ]+ ):computer_use_header = "computer-use-2025-01-24"else:computer_use_header = "computer-use-2024-10-22"