From 2689cbccc4c078debca456853cfca25c224b08e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Wed, 31 Jan 2024 17:48:05 +0800 Subject: [PATCH] fixbug: max_words --- metagpt/memory/brain_memory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.py index 384c4d3a9..56b13c875 100644 --- a/metagpt/memory/brain_memory.py +++ b/metagpt/memory/brain_memory.py @@ -302,7 +302,7 @@ class BrainMemory(BaseModel): return text system_msgs = [ "You are a tool for summarizing and abstracting text.", - "Return the summarized text to less than 200 words.", + f"Return the summarized text to less than {max_words} words.", ] if keep_language: system_msgs.append("The generated summary should be in the same language as the original text.")