Update litellm/proxy/agent_endpoints/auth/agent_permission_handler.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
yuneng-jiang 2026-02-20 18:13:50 -08:00 • committed by GitHub
parent 883a8e0589
commit 65961988cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,7 +266,7 @@ class AgentRequestHandler:
except Exception as 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":
if user_api_key_auth.team_id != UI_SESSION_TOKEN_TEAM_ID:
verbose_logger.warning(
f"Failed to get allowed agents for team: {str(e)}"
)