mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix 1 - latency fix (#7655)
This commit is contained in:
parent
b77832a793
commit
6f6bf45684
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue