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(proxy): use set lookup for permitted agent filters
userd19dad954ec1
diff --git a/litellm/proxy/agent_endpoints/endpoints.py b/litellm/proxy/agent_endpoints/endpoints.pyindex 32d9a7f2721..374c123c332 100644--- a/litellm/proxy/agent_endpoints/endpoints.py+++ b/litellm/proxy/agent_endpoints/endpoints.py@@ -1005,8 +1005,9 @@ async def get_agent_daily_activity(permitted_agent_ids = [a.agent_id for a in owned_records]if agent_ids_list:+ permitted_agent_id_set = set(permitted_agent_ids)agent_ids_list = [- aid for aid in agent_ids_list if aid in permitted_agent_ids+ aid for aid in agent_ids_list if aid in permitted_agent_id_set]else:agent_ids_list = list(permitted_agent_ids)