mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
Do not cooldown deployment if exception_status is empty string
This commit is contained in:
parent
13703f289b
commit
5a1b6fe1a6
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue