fix: fix check

This commit is contained in:
Krrish Dholakia 2025-08-11 17:56:19 -07:00
parent d8e45b6719
commit fa6d9fa8f3

View file

@ -610,7 +610,7 @@ class Cache:
verbose_logger.exception(f"LiteLLM Cache: Excepton add_cache: {str(e)}")
async def async_add_cache(
self, result, dynamic_cache_object: Optional[BaseCache], **kwargs
self, result, dynamic_cache_object: Optional[BaseCache] = None, **kwargs
):
"""
Async implementation of add_cache
@ -691,7 +691,7 @@ class Cache:
return cache_key, cached_data, kwargs
async def async_add_cache_pipeline(
self, result, dynamic_cache_object: Optional[BaseCache], **kwargs
self, result, dynamic_cache_object: Optional[BaseCache] = None, **kwargs
):
"""
Async implementation of add_cache for Embedding calls