mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
Agent registry CRUD (/v1/agents*) sat in agent_routes, which feeds llm_api_routes, so DISABLE_LLM_API_ENDPOINTS returned "LLM API routes are disabled for this instance." for every Admin UI Agents tab call. Split the group the same way MCP is split: agent_inference_routes stays on the data plane, agent_management_routes joins management_routes, and agent_routes remains their union for keys configured with allowed_routes=["agent_routes"]. Non-admin callers reached agent CRUD through llm_api_routes before, so the management paths also join self_managed_routes and the llm_api_routes virtual key carve-out; the handlers already scope reads by role and 403 non-admin writes. Both new groups are tuples, so check_route_access now takes a Sequence and matches wildcards through a generator instead of materializing an intermediate list on every call. |
||
|---|---|---|
| .. | ||
| litellm_enterprise | ||
| conftest.py | ||