forked from phoenix/litellm-mirror
fix store internal users in redis correctly
This commit is contained in:
parent
e34d9c51c9
commit
44833f3508
1 changed files with 2 additions and 1 deletions
|
@ -415,9 +415,10 @@ async def get_user_object(
|
|||
raise Exception
|
||||
|
||||
_response = LiteLLM_UserTable(**dict(response))
|
||||
response_dict = _response.model_dump()
|
||||
|
||||
# save the user object to cache
|
||||
await user_api_key_cache.async_set_cache(key=user_id, value=_response)
|
||||
await user_api_key_cache.async_set_cache(key=user_id, value=response_dict)
|
||||
|
||||
return _response
|
||||
except Exception: # if user not in db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue