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]

Do not cooldown deployment if exception_status is empty string

IQHL (Hans Jacob Landelius)5a1b6fe1a6bd
diff --git a/litellm/router_utils/cooldown_handlers.py b/litellm/router_utils/cooldown_handlers.py
index 88bf1c0b277..158c2359bd8 100644
--- a/litellm/router_utils/cooldown_handlers.py
+++ b/litellm/router_utils/cooldown_handlers.py
@@ -62,6 +62,8 @@ def _is_cooldown_required(
return False
if isinstance(exception_status, str):
+ if len(exception_status) == 0:
+ return False
exception_status = int(exception_status)
if exception_status >= 400 and exception_status < 500: