diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.py index f2418b658..aafa84b32 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: