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.
Adds additional debug info if assistant thoughts in wrong fromat.
Torantulino96e833bc8e54
diff --git a/AutonomousAI/main.py b/AutonomousAI/main.pyindex 84ad0803bd..42a325ff66 100644--- a/AutonomousAI/main.py+++ b/AutonomousAI/main.py@@ -144,9 +144,11 @@ def print_assistant_thoughts(assistant_reply):print("CRITICISM: " + assistant_thoughts_criticism, flush=True)except json.decoder.JSONDecodeError:print("Error: Invalid JSON", flush=True)+ print(assistant_reply, flush=True)# All other errors, return "Error: + error message"except Exception as e:print("Error: " + str(e), flush=True)+ print(assistant_reply, flush=True)# Initialize variablesfull_message_history = []