mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 19:36:24 +02:00
refactor: brain memory
This commit is contained in:
parent
f4eea02866
commit
20fb71b0a3
1 changed files with 2 additions and 2 deletions
|
|
@ -216,9 +216,9 @@ class BrainMemory(pydantic.BaseModel):
|
|||
logger.debug(f"summary rsp: {response}")
|
||||
return response
|
||||
|
||||
async def get_title(self, text: str, llm, max_words=5, **kwargs) -> str:
|
||||
async def get_title(self, llm, max_words=5, **kwargs) -> str:
|
||||
"""Generate text title"""
|
||||
summary = await self.summarize(text, max_words=500)
|
||||
summary = await self.summarize(max_words=500)
|
||||
|
||||
language = CONFIG.language or DEFAULT_LANGUAGE
|
||||
command = f"Translate the above summary into a {language} title of less than {max_words} words."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue