mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
fixbug: max_words
This commit is contained in:
parent
bc5a509136
commit
2689cbccc4
1 changed files with 1 additions and 1 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue