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 mypy
Sameer Kankuted38609eb99ad
diff --git a/litellm/proxy/management_helpers/object_permission_utils.py b/litellm/proxy/management_helpers/object_permission_utils.pyindex 023009d1989..eb90d1b5ca7 100644--- a/litellm/proxy/management_helpers/object_permission_utils.py+++ b/litellm/proxy/management_helpers/object_permission_utils.py@@ -439,11 +439,12 @@ async def validate_key_search_tools_against_team(disallowed = set(requested) - set(team_tools)if disallowed:+ team_id = team_obj.team_id if team_obj is not None else "unknown"raise HTTPException(status_code=status.HTTP_403_FORBIDDEN,detail={"error": (- f"Key requests search tools not allowed by team '{team_obj.team_id}': "+ f"Key requests search tools not allowed by team '{team_id}': "f"{sorted(disallowed)}. Team allows: {sorted(team_tools)}.")},