mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
fixbug: llm.aask unit test failed
This commit is contained in:
parent
5e6b665f15
commit
0415881164
1 changed files with 2 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ class BrainMemory(BaseModel):
|
|||
summaries = [summary, command]
|
||||
msg = "\n".join(summaries)
|
||||
logger.debug(f"title ask:{msg}")
|
||||
response = await llm.aask(msg=msg, system_msgs=[])
|
||||
response = await llm.aask(msg=msg, system_msgs=[], stream=False)
|
||||
logger.debug(f"title rsp: {response}")
|
||||
return response
|
||||
|
||||
|
|
@ -308,7 +308,7 @@ class BrainMemory(BaseModel):
|
|||
]
|
||||
if keep_language:
|
||||
system_msgs.append("The generated summary should be in the same language as the original text.")
|
||||
response = await self.llm.aask(msg=text, system_msgs=system_msgs)
|
||||
response = await self.llm.aask(msg=text, system_msgs=system_msgs, stream=False)
|
||||
logger.debug(f"{text}\nsummary rsp: {response}")
|
||||
return response
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue