diff --git a/autogpt/llm/utils/__init__.py b/autogpt/llm/utils/__init__.py index 736745cf89f..8c10d628d77 100644 --- a/autogpt/llm/utils/__init__.py +++ b/autogpt/llm/utils/__init__.py @@ -97,7 +97,7 @@ def _wrapped(*args, **kwargs): user_warned = True except APIError as e: - if (e.http_status not in [502, 429]) or (attempt == num_attempts): + if (e.http_status not in [429, 502, 503]) or (attempt == num_attempts): raise backoff = backoff_base ** (attempt + 2)