mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
With LITELLM_DISABLE_LAZY_ROUTES set, every optional feature router registers before the component lifespan trims the route table, so 139 routes such as /guardrails/list, /scim/v2/Users, /policies, /prompts, /vector_store/list, /claude_code_gateway/v1/messages and the MCP OAuth endpoints matched neither allowlist and answered 404 on both gateway.main and backend.main. Management, identity, MCP OAuth and plugin hub routes go to the backend, next to /token, /.well-known/ and /mcp. Claude Code gateway traffic, the codex, laya, bespoke and opensearch pass-throughs and /apply_guardrail go to the gateway. /guardrails/apply_guardrail stays on both, since services call it on the gateway and the dashboard's guardrail tester calls it on the backend. The backend's /agent/daily/activity/ prefix also drops its trailing slash so the bare route it serves is kept. |
||
|---|---|---|
| .. | ||
| routes | ||
| main.py | ||