fix 1 - latency fix (#7655)
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 12s

This commit is contained in:
Ishaan Jaff 2025-01-09 15:57:05 -08:00 committed by GitHub
parent 907bcd3a62
commit fd46482916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -670,6 +670,8 @@ class LLMCachingHandler:
Raises:
None
"""
if litellm.cache is None:
return
new_kwargs = kwargs.copy()
new_kwargs.update(
@ -678,8 +680,6 @@ class LLMCachingHandler:
args,
)
)
if litellm.cache is None:
return
# [OPTIONAL] ADD TO CACHE
if self._should_store_result_in_cache(
original_function=original_function, kwargs=new_kwargs