Improves response to AI that sends wrong output.

pull/559/head
Toran Bruce Richards 2023-04-09 06:44:10 +01:00
parent d8410d9ca3
commit a2fe619c7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)