From 60d984f18478eeada59df09bde99e6bfae5fbe30 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 10:25:31 +0800 Subject: [PATCH] fixbug: MET-1113 --- metagpt/actions/talk_action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metagpt/actions/talk_action.py b/metagpt/actions/talk_action.py index 555b202d1..e81f14bdd 100644 --- a/metagpt/actions/talk_action.py +++ b/metagpt/actions/talk_action.py @@ -14,7 +14,7 @@ from metagpt.logs import logger class TalkAction(Action): - def __init__(self, name: str = '', talk='', history_summary='', knowledge='', context=None, llm=None, **kwargs): + def __init__(self, name: str = "", talk="", history_summary="", knowledge="", context=None, llm=None, **kwargs): context = context or {} context["talk"] = talk context["history_summery"] = history_summary @@ -32,7 +32,7 @@ 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}:\n {self._talk}" + prompt += f"Answer in {language}, and the answers must follow the Markdown format.\n {self._talk}" return prompt async def run(self, *args, **kwargs) -> ActionOutput: