Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

refactor: refine prompt

莘权 马3e28b93e542f
diff --git a/metagpt/actions/talk_action.py b/metagpt/actions/talk_action.py
index e81f14bdd..ac395e9dd 100644
--- a/metagpt/actions/talk_action.py
+++ b/metagpt/actions/talk_action.py
@@ -32,7 +32,10 @@ class TalkAction(Action):
if self._history_summary != "":
prompt += "According to the historical conversation above, "
language = CONFIG.language or DEFAULT_LANGUAGE
- prompt += f"Answer in {language}, and the answers must follow the Markdown format.\n {self._talk}"
+ prompt += (
+ f"Answer the following questions in {language}, and the answers must follow the Markdown format.\n "
+ f"{self._talk}"
+ )
return prompt
async def run(self, *args, **kwargs) -> ActionOutput: