mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
working with embeddings
This commit is contained in:
parent
53018e4b23
commit
71ff0c69ab
3 changed files with 56 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue