mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
Merge branch 'main' into litellm_personal_user_budgets
This commit is contained in:
commit
7d28b6ebc3
48 changed files with 1761 additions and 461 deletions
|
@ -401,6 +401,12 @@ async def _cache_team_object(
|
|||
key=key, value=value
|
||||
)
|
||||
|
||||
## UPDATE REDIS CACHE ##
|
||||
if proxy_logging_obj is not None:
|
||||
await proxy_logging_obj.internal_usage_cache.async_set_cache(
|
||||
key=key, value=team_table
|
||||
)
|
||||
|
||||
|
||||
@log_to_opentelemetry
|
||||
async def get_team_object(
|
||||
|
@ -423,7 +429,6 @@ async def get_team_object(
|
|||
|
||||
# check if in cache
|
||||
key = "team_id:{}".format(team_id)
|
||||
|
||||
cached_team_obj: Optional[LiteLLM_TeamTableCachedObj] = None
|
||||
|
||||
## CHECK REDIS CACHE ##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue