mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
fixbug: summary too long
This commit is contained in:
parent
842aac82fc
commit
3112680324
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
|
|||
|
||||
async def get_context_title(self, text: str, max_words=5) -> str:
|
||||
"""Generate text title"""
|
||||
summary = await self.get_summary(text, max_words)
|
||||
summary = await self.get_summary(text, 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