Skip to content

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]

LITELLM_METADATA_ROUTES

Ishaan Jaff28bcbe0fb11a
diff --git a/litellm/proxy/litellm_pre_call_utils.py b/litellm/proxy/litellm_pre_call_utils.py
index 91d198b601c..ece5ecf4b7c 100644
--- a/litellm/proxy/litellm_pre_call_utils.py
+++ b/litellm/proxy/litellm_pre_call_utils.py
@@ -62,8 +62,10 @@ def _get_metadata_variable_name(request: Request) -> str:
"""
if RouteChecks._is_assistants_api_request(request):
return "litellm_metadata"
+
LITELLM_METADATA_ROUTES = [
- "batches" "/v1/messages",
+ "batches",
+ "/v1/messages",
"responses",
]
if any(