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.

Improves response to AI that sends wrong output.

Toran Bruce Richardsa2fe619c7b73
diff --git a/scripts/commands.py b/scripts/commands.py
index 1f255751c0..ba5383957a 100644
--- a/scripts/commands.py
+++ b/scripts/commands.py
@@ -109,7 +109,7 @@ def execute_command(command_name, arguments):
elif command_name == "task_complete":
shutdown()
else:
- return f"Unknown command {command_name}"
+ return f"Unknown command '{command_name}'. Please refer to the 'COMMANDS' list for availabe commands and only respond in the specified JSON format."
# All errors, return "Error: + error message"
except Exception as e:
return "Error: " + str(e)