From fdca233fe303d5e880384342fb857f7033224707 Mon Sep 17 00:00:00 2001 From: Erik Peterson Date: Fri, 9 Jun 2023 17:25:03 -0700 Subject: [PATCH] Fix prompt issue causing 'No Command' issues and challenge to fail (#4623) Co-authored-by: merwanehamadi --- autogpt/agent/agent.py | 2 +- autogpt/prompts/prompt.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py index c21f31db..b2470f99 100644 --- a/autogpt/agent/agent.py +++ b/autogpt/agent/agent.py @@ -45,7 +45,7 @@ class Agent: triggering_prompt: The last sentence the AI will see before answering. For Auto-GPT, this prompt is: - Determine which next command to use, and respond using the format specified + Determine exactly one command to use, and respond using the format specified above: The triggering prompt is not part of the system prompt because between the system prompt and the triggering diff --git a/autogpt/prompts/prompt.py b/autogpt/prompts/prompt.py index eeeea3f9..61238657 100644 --- a/autogpt/prompts/prompt.py +++ b/autogpt/prompts/prompt.py @@ -11,9 +11,7 @@ from autogpt.utils import clean_input CFG = Config() -DEFAULT_TRIGGERING_PROMPT = ( - "Determine which next command to use, and respond using the format specified above:" -) +DEFAULT_TRIGGERING_PROMPT = "Determine exactly one command to use, and respond using the format specified above:" def build_default_prompt_generator() -> PromptGenerator: