fix(proxy_server.py): fix admin allowed routes

This commit is contained in:
Krrish Dholakia 2024-05-22 20:54:48 -07:00
parent 595a2a5b1b
commit a33b9221da
5 changed files with 144 additions and 26 deletions

View file

@ -497,7 +497,7 @@ async def user_api_key_auth(
litellm_proxy_roles=jwt_handler.litellm_jwtauth,
)
if is_allowed:
return UserAPIKeyAuth()
return UserAPIKeyAuth(user_role="proxy_admin")
else:
allowed_routes = (
jwt_handler.litellm_jwtauth.admin_allowed_routes