Merge pull request #2687 from BerriAI/litellm_jwt_auth_fixes_2

Litellm jwt auth fixes
This commit is contained in:
Krish Dholakia 2024-03-25 13:27:19 -07:00 committed by GitHub
commit f15ba10170
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 300 additions and 43 deletions

View file

@ -2710,7 +2710,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: