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
chore: Clarify support-related Exceptions in utils.py (#5447)
JooHo Kim5b1d9712c541
diff --git a/litellm/utils.py b/litellm/utils.pyindex b22faae0442..37a2e6f6a67 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -2103,7 +2103,7 @@ def supports_system_messages(model: str, custom_llm_provider: Optional[str]) ->return Falseexcept Exception:raise Exception(- f"Model not in model_prices_and_context_window.json. You passed model={model}, custom_llm_provider={custom_llm_provider}."+ f"Model not supports system messages. You passed model={model}, custom_llm_provider={custom_llm_provider}.")@@ -2139,7 +2139,7 @@ def supports_response_schema(model: str, custom_llm_provider: Optional[str]) ->return Falseexcept Exception:verbose_logger.error(- f"Model not in model_prices_and_context_window.json. You passed model={model}, custom_llm_provider={custom_llm_provider}."+ f"Model not supports response_schema. You passed model={model}, custom_llm_provider={custom_llm_provider}.")return False@@ -2165,7 +2165,7 @@ def supports_function_calling(model: str) -> bool:return Falseelse:raise Exception(- f"Model not in model_prices_and_context_window.json. You passed model={model}."+ f"Model not supports function calling. You passed model={model}.")@@ -2211,7 +2211,7 @@ def supports_parallel_function_calling(model: str):return Falseelse:raise Exception(- f"Model not in model_prices_and_context_window.json. You passed model={model}."+ f"Model not supports parallel function calling. You passed model={model}.")