Merge branch 'master' into fix-#323-error-communicating-to-openai

This commit is contained in:
Pratik Singh Chauhan
2023-04-10 12:28:06 +05:30
committed by GitHub
4 changed files with 122 additions and 10 deletions

View File

@@ -106,6 +106,8 @@ def execute_command(command_name, arguments):
return execute_python_file(arguments["file"])
elif command_name == "generate_image":
return generate_image(arguments["prompt"])
elif command_name == "do_nothing":
return "No action performed."
elif command_name == "task_complete":
shutdown()
else:
@@ -284,4 +286,4 @@ def delete_agent(key):
result = agents.delete_agent(key)
if not result:
return f"Agent {key} does not exist."
return f"Agent {key} deleted."
return f"Agent {key} deleted."