From 028d301678681cbe0563eb3dec7826ab81a7c371 Mon Sep 17 00:00:00 2001 From: Torantulino Date: Thu, 30 Mar 2023 10:06:31 +0100 Subject: [PATCH] Renames transcribe_summarise to get text summary --- AutonomousAI/commands.py | 4 ++-- AutonomousAI/data/prompt.txt | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/AutonomousAI/commands.py b/AutonomousAI/commands.py index d9a6273105..47f4159b78 100644 --- a/AutonomousAI/commands.py +++ b/AutonomousAI/commands.py @@ -48,8 +48,8 @@ def execute_command(command_name, arguments): return navigate_website(arguments["action"], arguments["username"]) elif command_name == "register_account": return register_account(arguments["username"], arguments["website"]) - elif command_name == "transcribe_summarise": - return transcribe_summarise(arguments["url"]) + elif command_name == "get_text_summary": + return get_text_summary(arguments["url"]) else: return f"unknown command {command_name}" # All other errors, return "Error: + error message" diff --git a/AutonomousAI/data/prompt.txt b/AutonomousAI/data/prompt.txt index 23fb02c083..711b21782c 100644 --- a/AutonomousAI/data/prompt.txt +++ b/AutonomousAI/data/prompt.txt @@ -16,8 +16,7 @@ COMMANDS: 9. List GPT Agents: "list_agents", args: "" 10. Delete GPT Agent: "delete_agent", args: "key": "" 9. Navigate & Perform: "navigate_website", args: "action": "click_button/input_text/register_account", "text/username": "/" -10.Register account: "register_account", args: "username": "", "website": "" -11.Transcribe & Summarise: "transcribe_summarise", args: "url": "" +11. Get Text Summary: "get_text_summary", args: "url": "" RESOURCES: