From 3e28b93e542f7223756cd127449b38001574a16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Fri, 1 Sep 2023 22:46:04 +0800 Subject: [PATCH] refactor: refine prompt --- metagpt/actions/talk_action.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: