mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
(fix) - update user error
This commit is contained in:
parent
3ff8d8df23
commit
084fdf5cb9
1 changed files with 2 additions and 0 deletions
|
@ -1418,6 +1418,8 @@ async def update_cache(
|
|||
try:
|
||||
for _id in user_ids:
|
||||
# Fetch the existing cost for the given user
|
||||
if _id is None:
|
||||
continue
|
||||
existing_spend_obj = await user_api_key_cache.async_get_cache(key=_id)
|
||||
if existing_spend_obj is None:
|
||||
# if user does not exist in LiteLLM_UserTable, create a new user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue