mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
get_request_route() already strips scope["root_path"], so the route handed to the mapped-pass-through allowlist checks never carries the SERVER_ROOT_PATH prefix. normalize_route_for_root_path() stripped a second time and returned None for those bare routes, which made both callers skip the whole mapped_pass_through_routes allowlist: every provider pass-through (/anthropic, /bedrock, /vertex_ai, /gemini, /cohere, ...) 404'd, and the litellm_user_api_key header swap stopped firing. Replace it with strip_server_root_path(), which removes the prefix when the route carries it and returns the route untouched otherwise, so both the bare and the prefixed shape resolve. |
||
|---|---|---|
| .. | ||
| helpers | ||
| prisma_and_spend | ||
| proxy_logging | ||
| __init__.py | ||