mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(handle_jwt.py): allow setting proxy admin role string for jwt auth
This commit is contained in:
parent
edd00af6f2
commit
93959ab5aa
4 changed files with 43 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue