mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
use get_request_route
This commit is contained in:
parent
13f01ed57f
commit
aa7174c270
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue