mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
latency fix _cache_key_object (#7676)
This commit is contained in:
parent
00a0f56565
commit
af08a0caed
1 changed files with 7 additions and 5 deletions
|
@ -744,11 +744,13 @@ async def user_api_key_auth( # noqa: PLR0915
|
|||
route=route,
|
||||
start_time=start_time,
|
||||
)
|
||||
await _cache_key_object(
|
||||
hashed_token=hash_token(master_key),
|
||||
user_api_key_obj=_user_api_key_obj,
|
||||
user_api_key_cache=user_api_key_cache,
|
||||
proxy_logging_obj=proxy_logging_obj,
|
||||
asyncio.create_task(
|
||||
_cache_key_object(
|
||||
hashed_token=hash_token(master_key),
|
||||
user_api_key_obj=_user_api_key_obj,
|
||||
user_api_key_cache=user_api_key_cache,
|
||||
proxy_logging_obj=proxy_logging_obj,
|
||||
)
|
||||
)
|
||||
|
||||
return _user_api_key_obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue