diff --git a/litellm/caching/caching.py b/litellm/caching/caching.py index 175eaa112a3..0a8b6ef18d1 100644 --- a/litellm/caching/caching.py +++ b/litellm/caching/caching.py @@ -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