AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Retry 503 OpenAI errors
Merwane Hamadi1fead303a095
diff --git a/autogpt/llm/utils/__init__.py b/autogpt/llm/utils/__init__.pyindex 736745cf89..cd2c1c0a3c 100644--- a/autogpt/llm/utils/__init__.py+++ b/autogpt/llm/utils/__init__.py@@ -97,7 +97,9 @@ def retry_openai_api(user_warned = Trueexcept 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+ ):raisebackoff = backoff_base ** (attempt + 2)