mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
use get_request_route
This commit is contained in:
parent
9abe55fa86
commit
7c7c8fe102
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 (
|
from litellm.proxy.auth.auth_utils import (
|
||||||
check_if_request_size_is_safe,
|
check_if_request_size_is_safe,
|
||||||
|
get_request_route,
|
||||||
is_llm_api_route,
|
is_llm_api_route,
|
||||||
route_in_additonal_public_routes,
|
route_in_additonal_public_routes,
|
||||||
)
|
)
|
||||||
|
@ -115,7 +116,7 @@ async def user_api_key_auth(
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
route: str = request.url.path
|
route: str = get_request_route(request=request)
|
||||||
|
|
||||||
### LiteLLM Enterprise Security Checks
|
### LiteLLM Enterprise Security Checks
|
||||||
# Check 1. Check if request size is under max_request_size_mb
|
# Check 1. Check if request size is under max_request_size_mb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue