fix(caching.py): return updated kwargs from get_cache helper function

This commit is contained in:
Krrish Dholakia 2024-01-13 15:04:34 +05:30
parent ebf1bc842c
commit 7f83cca62c
3 changed files with 9 additions and 8 deletions

View file

@ -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