mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fixbug: llm missing
This commit is contained in:
parent
58f2eec340
commit
dda55aec96
1 changed files with 3 additions and 1 deletions
|
|
@ -156,7 +156,9 @@ class BrainMemory(pydantic.BaseModel):
|
|||
part_max_words = min(int(max_words / len(text_windows)) + 1, 100)
|
||||
summaries = []
|
||||
for ws in text_windows:
|
||||
response = await self._get_summary(text=ws, max_words=part_max_words, keep_language=keep_language)
|
||||
response = await self._get_summary(
|
||||
text=ws, llm=llm, max_words=part_max_words, keep_language=keep_language
|
||||
)
|
||||
summaries.append(response)
|
||||
if len(summaries) == 1:
|
||||
summary = summaries[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue