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.
Fix `CommandRegistry` state initialization
Reinier van der Leer050c52a0082e
diff --git a/autogpt/models/command_registry.py b/autogpt/models/command_registry.pyindex 59d3ae775b..f54f4adb50 100644--- a/autogpt/models/command_registry.py+++ b/autogpt/models/command_registry.py@@ -15,8 +15,12 @@ class CommandRegistry:directory."""- commands: dict[str, Command] = {}- commands_aliases: dict[str, Command] = {}+ commands: dict[str, Command]+ commands_aliases: dict[str, Command]++ def __init__(self):+ self.commands = {}+ self.commands_aliases = {}def __contains__(self, command_name: str):return command_name in self.commands or command_name in self.commands_aliases