fix(caching.py): fix async in-memory caching

This commit is contained in:
Krrish Dholakia 2024-01-13 15:33:57 +05:30
parent 7f83cca62c
commit 40c952f7c2
3 changed files with 16 additions and 42 deletions

View file

@ -2357,6 +2357,9 @@ def client(original_function):
model=kwargs.get("model"),
data=[None] * len(original_kwargs_input),
)
final_embedding_cached_response._hidden_params[
"cache_hit"
] = True
for val in non_null_list:
idx, cr = val # (idx, cr) tuple