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]

fix: suppress noisy warning for litellm-dashboard team in agent permission handler

yuneng-jiang883a8e0589ae
diff --git a/litellm/proxy/agent_endpoints/auth/agent_permission_handler.py b/litellm/proxy/agent_endpoints/auth/agent_permission_handler.py
index 95564342500..b7557c883eb 100644
--- a/litellm/proxy/agent_endpoints/auth/agent_permission_handler.py
+++ b/litellm/proxy/agent_endpoints/auth/agent_permission_handler.py
@@ -264,7 +264,12 @@ class AgentRequestHandler:
return list(set(all_agents))
except Exception as e:
- verbose_logger.warning(f"Failed to get allowed agents for team: {str(e)}")
+ # litellm-dashboard is the default UI team and will never have agents;
+ # skip noisy warnings for it.
+ if user_api_key_auth.team_id != "litellm-dashboard":
+ verbose_logger.warning(
+ f"Failed to get allowed agents for team: {str(e)}"
+ )
return []
@staticmethod