litellm/tests/test_litellm/proxy/utils
Yuneng Jiang a57a7ef0b1
fix(proxy): restore provider pass-through routes under SERVER_ROOT_PATH
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.
2026-07-25 15:09:03 -07:00
..
helpers fix(proxy): restore provider pass-through routes under SERVER_ROOT_PATH 2026-07-25 15:09:03 -07:00
prisma_and_spend fix(proxy): never log raw virtual keys in key insertion debug output (#33268) 2026-07-14 16:32:26 -07:00
proxy_logging feat(guardrails): add run_in_parallel opt-in for concurrent pre_call and post_call guardrails (#33770) 2026-07-24 13:25:58 -07:00
__init__.py test(proxy/utils): pin bottom-of-file helper behavior (#29509) 2026-06-02 17:45:19 -07:00