Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: fix check

Krrish Dholakia21e067e47f82
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