From 7c7c8fe10290a162efbada843aa988964322b9ce Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 5 Aug 2024 10:13:47 -0700 Subject: [PATCH] use get_request_route --- litellm/proxy/auth/user_api_key_auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index b8be226050..1192490422 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -58,6 +58,7 @@ from litellm.proxy.auth.auth_checks import ( ) from litellm.proxy.auth.auth_utils import ( check_if_request_size_is_safe, + get_request_route, is_llm_api_route, route_in_additonal_public_routes, ) @@ -115,7 +116,7 @@ async def user_api_key_auth( ) try: - route: str = request.url.path + route: str = get_request_route(request=request) ### LiteLLM Enterprise Security Checks # Check 1. Check if request size is under max_request_size_mb