litellm/backend
Yuneng Jiang 10466e5bbc
fix(proxy): keep eagerly registered feature routes on the gateway and backend components
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.
2026-11-11 17:42:24 -08:00
..
routes fix(proxy): keep eagerly registered feature routes on the gateway and backend components 2026-11-11 17:42:24 -08:00
main.py fix(proxy): preserve state through composed lifespans (#44214) 2026-10-02 10:56:52 -07:00