mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
refactor(user_api_key_auth.py): move is_route_allowed to inside common_checks
ensures consistent behaviour inside api key + jwt routes
This commit is contained in:
parent
91cf3fc40d
commit
95ef5f1009
5 changed files with 167 additions and 155 deletions
|
@ -321,6 +321,7 @@ async def check_if_request_size_is_safe(request: Request) -> bool:
|
|||
from litellm.proxy.proxy_server import general_settings, premium_user
|
||||
|
||||
max_request_size_mb = general_settings.get("max_request_size_mb", None)
|
||||
|
||||
if max_request_size_mb is not None:
|
||||
# Check if premium user
|
||||
if premium_user is not True:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue