Skip to content

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.py
index f2418b658f..aafa84b32f 100644
--- a/autogpt/llm_utils.py
+++ b/autogpt/llm_utils.py
@@ -95,6 +95,11 @@ def create_chat_completion(
)
break
except RateLimitError:
+ if CFG.debug_mode:
+ print(
+ Fore.RED + "Error: ",
+ f"Reached rate limit. Waiting {backoff} seconds..." + Fore.RESET,
+ )
pass
except APIError as e:
if e.http_status == 502: