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 dump
Wlad82379bb4168b
diff --git a/scripts/main.py b/scripts/main.pyindex 6a4723d4e0..3c1c789cd5 100644--- a/scripts/main.py+++ b/scripts/main.py@@ -140,10 +140,8 @@ def print_assistant_thoughts(assistant_reply):# Speak the assistant's thoughtsif cfg.speak_mode and assistant_thoughts_speak:speak.say_text(assistant_thoughts_speak)-except json.decoder.JSONDecodeError as e:print_to_console("Error: Invalid JSON\n", Fore.RED, assistant_reply)- print_to_console("Stack trace:\n", Fore.RED, e.with_traceback)if cfg.speak_mode:speak.say_text("I have received an invalid JSON response from the OpenAI API. I cannot ignore this response.")@@ -363,6 +361,8 @@ while True:# Get command name and argumentstry:command_name, arguments = cmd.get_command(assistant_reply)+ if cfg.speak_mode:+ speak.say_text(f"I want to execute {command_name}")except Exception as e:print_to_console("Error: \n", Fore.RED, str(e))