working with embeddings

This commit is contained in:
ishaan-jaff 2023-08-28 14:07:51 -07:00
parent 53018e4b23
commit 71ff0c69ab
3 changed files with 56 additions and 18 deletions

View file

@ -403,7 +403,7 @@ def client(original_function):
start_time = datetime.datetime.now()
# [OPTIONAL] CHECK CACHE
if (litellm.caching or litellm.caching_with_models or litellm.cache != None) and (
cached_result := litellm.cache.check_cache(*args, **kwargs)
cached_result := litellm.cache.get_cache(*args, **kwargs)
) is not None:
result = cached_result
return result