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.
Handes case where no args are given with command.
Torantulinod5a5e4164077
diff --git a/AutonomousAI/commands.py b/AutonomousAI/commands.pyindex 6d130db894..d9a6273105 100644--- a/AutonomousAI/commands.py+++ b/AutonomousAI/commands.py@@ -12,6 +12,9 @@ def get_command(response):command_name = command["name"]arguments = command["args"]+ if not arguments:+ arguments = {}+return command_name, argumentsexcept json.decoder.JSONDecodeError:return "Error: Invalid JSON"