fix(auth_checks.py): fix redis usage for team cached objects

This commit is contained in:
Krrish Dholakia 2024-07-30 17:29:38 -07:00
parent 0f98cb7adc
commit 1915adfc2d
5 changed files with 37 additions and 21 deletions

View file

@ -18,6 +18,7 @@ from litellm.proxy._types import (
LiteLLM_AuditLogs,
LiteLLM_ModelTable,
LiteLLM_TeamTable,
LiteLLM_TeamTableCachedObj,
LitellmTableNames,
LitellmUserRoles,
Member,
@ -379,7 +380,7 @@ async def update_team(
await _cache_team_object(
team_id=team_row.team_id,
team_table=team_row,
team_table=LiteLLM_TeamTableCachedObj(**team_row.model_dump()),
user_api_key_cache=user_api_key_cache,
proxy_logging_obj=proxy_logging_obj,
)