fix(handle_jwt.py): allow setting proxy admin role string for jwt auth

This commit is contained in:
Krrish Dholakia 2024-03-25 12:20:14 -07:00
parent edd00af6f2
commit 93959ab5aa
4 changed files with 43 additions and 5 deletions

View file

@ -2711,7 +2711,11 @@ async def startup_event():
## JWT AUTH ##
jwt_handler.update_environment(
prisma_client=prisma_client, user_api_key_cache=user_api_key_cache
prisma_client=prisma_client,
user_api_key_cache=user_api_key_cache,
litellm_proxy_roles=LiteLLMProxyRoles(
**general_settings.get("litellm_proxy_roles", {})
),
)
if use_background_health_checks: