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.

Use readline if available

jlxip504a85bbdb57
diff --git a/autogpt/utils.py b/autogpt/utils.py
index e93d5ac740..1b4fa2047f 100644
--- a/autogpt/utils.py
+++ b/autogpt/utils.py
@@ -5,6 +5,12 @@ import yaml
from colorama import Fore
from git import Repo
+# Use readline if available (for clean_input)
+try:
+ import readline
+except:
+ pass
+
def clean_input(prompt: str = ""):
try: