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
refactor: BEDROCK_CONVERSE_MODELS
Ishaan Jafff0f84d6c5c8f
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex 79865c83513..453396f9a0f 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -67,6 +67,7 @@ from litellm.constants import (bedrock_embedding_models,known_tokenizer_config,BEDROCK_INVOKE_PROVIDERS_LITERAL,+ BEDROCK_CONVERSE_MODELS,DEFAULT_MAX_TOKENS,DEFAULT_SOFT_BUDGET,DEFAULT_ALLOWED_FAILS,@@ -432,40 +433,6 @@ organization = Noneproject = Noneconfig_path = Nonevertex_ai_safety_settings: Optional[dict] = None-BEDROCK_CONVERSE_MODELS = [- "openai.gpt-oss-20b-1:0",- "openai.gpt-oss-120b-1:0",- "anthropic.claude-opus-4-1-20250805-v1:0",- "anthropic.claude-opus-4-20250514-v1:0",- "anthropic.claude-sonnet-4-20250514-v1:0",- "anthropic.claude-3-7-sonnet-20250219-v1:0",- "anthropic.claude-3-5-haiku-20241022-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",- "anthropic.claude-3-sonnet-20240229-v1:0",- "anthropic.claude-3-haiku-20240307-v1:0",- "anthropic.claude-v2",- "anthropic.claude-v2:1",- "anthropic.claude-v1",- "anthropic.claude-instant-v1",- "ai21.jamba-instruct-v1:0",- "ai21.jamba-1-5-mini-v1:0",- "ai21.jamba-1-5-large-v1:0",- "meta.llama3-70b-instruct-v1:0",- "meta.llama3-8b-instruct-v1:0",- "meta.llama3-1-8b-instruct-v1:0",- "meta.llama3-1-70b-instruct-v1:0",- "meta.llama3-1-405b-instruct-v1:0",- "meta.llama3-70b-instruct-v1:0",- "mistral.mistral-large-2407-v1:0",- "mistral.mistral-large-2402-v1:0",- "mistral.mistral-small-2402-v1:0",- "meta.llama3-2-1b-instruct-v1:0",- "meta.llama3-2-3b-instruct-v1:0",- "meta.llama3-2-11b-instruct-v1:0",- "meta.llama3-2-90b-instruct-v1:0",-]####### COMPLETION MODELS ###################from typing import Setdiff --git a/litellm/constants.py b/litellm/constants.pyindex 0803b61a2e8..21e30bef32b 100644--- a/litellm/constants.py+++ b/litellm/constants.py@@ -748,6 +748,42 @@ BEDROCK_INVOKE_PROVIDERS_LITERAL = Literal["deepseek_r1",]+BEDROCK_CONVERSE_MODELS = [+ "openai.gpt-oss-20b-1:0",+ "openai.gpt-oss-120b-1:0",+ "anthropic.claude-opus-4-1-20250805-v1:0",+ "anthropic.claude-opus-4-20250514-v1:0",+ "anthropic.claude-sonnet-4-20250514-v1:0",+ "anthropic.claude-3-7-sonnet-20250219-v1:0",+ "anthropic.claude-3-5-haiku-20241022-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",+ "anthropic.claude-3-sonnet-20240229-v1:0",+ "anthropic.claude-3-haiku-20240307-v1:0",+ "anthropic.claude-v2",+ "anthropic.claude-v2:1",+ "anthropic.claude-v1",+ "anthropic.claude-instant-v1",+ "ai21.jamba-instruct-v1:0",+ "ai21.jamba-1-5-mini-v1:0",+ "ai21.jamba-1-5-large-v1:0",+ "meta.llama3-70b-instruct-v1:0",+ "meta.llama3-8b-instruct-v1:0",+ "meta.llama3-1-8b-instruct-v1:0",+ "meta.llama3-1-70b-instruct-v1:0",+ "meta.llama3-1-405b-instruct-v1:0",+ "meta.llama3-70b-instruct-v1:0",+ "mistral.mistral-large-2407-v1:0",+ "mistral.mistral-large-2402-v1:0",+ "mistral.mistral-small-2402-v1:0",+ "meta.llama3-2-1b-instruct-v1:0",+ "meta.llama3-2-3b-instruct-v1:0",+ "meta.llama3-2-11b-instruct-v1:0",+ "meta.llama3-2-90b-instruct-v1:0",+]++open_ai_embedding_models: set = set(["text-embedding-ada-002"])cohere_embedding_models: set = set([