mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(caching.py): return updated kwargs from get_cache helper function
This commit is contained in:
parent
ebf1bc842c
commit
7f83cca62c
3 changed files with 9 additions and 8 deletions
|
@ -2029,7 +2029,11 @@ def client(original_function):
|
|||
# if caching is false or cache["no-cache"]==True, don't run this
|
||||
if (
|
||||
(
|
||||
(kwargs.get("caching", None) is None and litellm.cache is not None)
|
||||
(
|
||||
kwargs.get("caching", None) is None
|
||||
and kwargs.get("cache", None) is None
|
||||
and litellm.cache is not None
|
||||
)
|
||||
or kwargs.get("caching", False) == True
|
||||
or (
|
||||
kwargs.get("cache", None) is not None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue