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.
in debug mode add a log about rate limit error
hyaxia051b5372cec1
diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.pyindex f2418b658f..aafa84b32f 100644--- a/autogpt/llm_utils.py+++ b/autogpt/llm_utils.py@@ -95,6 +95,11 @@ def create_chat_completion()breakexcept RateLimitError:+ if CFG.debug_mode:+ print(+ Fore.RED + "Error: ",+ f"Reached rate limit. Waiting {backoff} seconds..." + Fore.RESET,+ )passexcept APIError as e:if e.http_status == 502: