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 type

Krrish Dholakia0b5deb275615
diff --git a/litellm/router.py b/litellm/router.py
index 7fe5c2fb94b..b16a84e11af 100644
--- a/litellm/router.py
+++ b/litellm/router.py
@@ -619,7 +619,7 @@ class Router:
@staticmethod
def _create_redis_cache(
cache_config: Dict[str, Any]
- ) -> RedisCache | RedisClusterCache:
+ ) -> Union[RedisCache, RedisClusterCache]:
if cache_config.get("startup_nodes"):
return RedisClusterCache(**cache_config)
else: