AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Fix prompt issue causing 'No Command' issues and challenge to fail (#4623)
Erik Petersonfdca233fe303
diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.pyindex c21f31dbec..b2470f9966 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 specifiedabove:The triggering prompt is not part of the system prompt because between thesystem prompt and the triggeringdiff --git a/autogpt/prompts/prompt.py b/autogpt/prompts/prompt.pyindex eeeea3f992..61238657c1 100644--- a/autogpt/prompts/prompt.py+++ b/autogpt/prompts/prompt.py@@ -11,9 +11,7 @@ from autogpt.utils import clean_inputCFG = 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: