mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-09 07:42:38 +02:00
fixbug: get_title
This commit is contained in:
parent
19e78ff13e
commit
1b6b24077e
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
async def get_title(self, llm, max_words=5, **kwargs) -> str:
|
||||
"""Generate text title"""
|
||||
if self.llm_type == LLMType.METAGPT.value:
|
||||
return self.history[0] if self.history else "New"
|
||||
return Message(**self.history[0]).content if self.history else "New"
|
||||
|
||||
summary = await self.summarize(llm=llm, max_words=500)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue