Improves response to AI that sends wrong output.
parent
d8410d9ca3
commit
a2fe619c7b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue