Skip to content

Commit

Permalink
Fix prompt issue causing 'No Command' issues and challenge to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-megarad committed Jun 9, 2023
1 parent ff4e53d commit 144dd67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autogpt/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions autogpt/prompts/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

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:
Expand Down

0 comments on commit 144dd67

Please sign in to comment.