Fix prompt issue causing 'No Command' issues and challenge to fail (#4623)

Co-authored-by: merwanehamadi <merwanehamadi@gmail.com>
This commit is contained in:
Erik Peterson
2023-06-09 17:25:03 -07:00
committed by GitHub
parent 3f2547295f
commit fdca233fe3
2 changed files with 2 additions and 4 deletions

View File

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

View File

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