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.

try another fix

Wlad87a2cf029dcc
diff --git a/scripts/main.py b/scripts/main.py
index cb91771b1c..bf27953b4f 100644
--- a/scripts/main.py
+++ b/scripts/main.py
@@ -370,11 +370,11 @@ while True:
cfg.fast_token_limit) # TODO: This hardcodes the model to use GPT3.5. Make this an argument
# Print Assistant thoughts
- assistant_reply = print_assistant_thoughts(assistant_reply)
+ print_assistant_thoughts(assistant_reply)
# Get command name and arguments
try:
- command_name, arguments = cmd.get_command(assistant_reply)
+ command_name, arguments = cmd.get_command(attempt_to_fix_json_by_finding_outermost_brackets(assistant_reply))
if cfg.speak_mode:
speak.say_text(f"I want to execute {command_name}")
except Exception as e: