mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
working with embeddings
This commit is contained in:
parent
db69c3660a
commit
c93f5e3def
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