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(cooldown_cache.py): fix linting errors

Krrish Dholakiacd7dd2a511ad
diff --git a/litellm/router_utils/cooldown_cache.py b/litellm/router_utils/cooldown_cache.py
index e47f77618bc..2d29a1a5d3e 100644
--- a/litellm/router_utils/cooldown_cache.py
+++ b/litellm/router_utils/cooldown_cache.py
@@ -89,7 +89,7 @@ class CooldownCache:
# Process the results
for model_id, result in zip(model_ids, results):
if result and isinstance(result, dict):
- cooldown_cache_value = CooldownCacheValue(**result)
+ cooldown_cache_value = CooldownCacheValue(**result) # type: ignore
active_cooldowns.append((model_id, cooldown_cache_value))
return active_cooldowns
@@ -107,7 +107,7 @@ class CooldownCache:
# Process the results
for model_id, result in zip(model_ids, results):
if result and isinstance(result, dict):
- cooldown_cache_value = CooldownCacheValue(**result)
+ cooldown_cache_value = CooldownCacheValue(**result) # type: ignore
active_cooldowns.append((model_id, cooldown_cache_value))
return active_cooldowns
@@ -125,7 +125,7 @@ class CooldownCache:
# Process the results
for model_id, result in zip(model_ids, results):
if result and isinstance(result, dict):
- cooldown_cache_value = CooldownCacheValue(**result)
+ cooldown_cache_value = CooldownCacheValue(**result) # type: ignore
if cooldown_cache_value["cooldown_time"] < min_cooldown_time:
min_cooldown_time = cooldown_cache_value["cooldown_time"]