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
fix(auth): tolerate request objects without path_params in common_checks
Yuneng Jiangc9259e4bf2b8
diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.pyindex fab0338c7a8..1db5e2f5724 100644--- a/litellm/proxy/auth/auth_checks.py+++ b/litellm/proxy/auth/auth_checks.py@@ -726,7 +726,7 @@ async def common_checks(route=route,request_body=request_body,fetch_team_org_id=_fetch_team_org_id,- path_team_id=request.path_params.get("team_id"),+ path_team_id=(getattr(request, "path_params", None) or {}).get("team_id"),)_is_route_allowed = _is_api_route_allowed(