mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fixbug: get_title
This commit is contained in:
parent
1b7afc9e31
commit
19e78ff13e
1 changed files with 3 additions and 0 deletions
|
|
@ -226,6 +226,9 @@ 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"
|
||||
|
||||
summary = await self.summarize(llm=llm, max_words=500)
|
||||
|
||||
language = CONFIG.language or DEFAULT_LANGUAGE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue