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.

Update chat.py

Andres Caicedo9699a1ca78a1
diff --git a/scripts/chat.py b/scripts/chat.py
index dd52e784ee..17e36879ed 100644
--- a/scripts/chat.py
+++ b/scripts/chat.py
@@ -1,4 +1,4 @@
-import time
+from time import sleep
import openai
from dotenv import load_dotenv
from config import Config
@@ -130,4 +130,4 @@ def chat_with_ai(
except openai.error.RateLimitError:
# TODO: WHen we switch to langchain, this is built in
print("Error: ", "API Rate Limit Reached. Waiting 10 seconds...")
- time.sleep(10)
+ sleep(10)