diff --git a/autogpt/llm/providers/openai.py b/autogpt/llm/providers/openai.py index add9954c..ef384667 100644 --- a/autogpt/llm/providers/openai.py +++ b/autogpt/llm/providers/openai.py @@ -186,7 +186,9 @@ def retry_api( user_warned = True except (APIError, Timeout) 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) diff --git a/pyproject.toml b/pyproject.toml index d795f53e..cb20ec64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "agpt" -version = "0.4.1" +version = "0.4.2" authors = [ { name="Torantulino", email="support@agpt.co" }, ]