🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: summary too long
莘权 马3112680324a2
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.pyindex 4764b6aad..b1d8aaa4a 100644--- a/metagpt/provider/openai_api.py+++ b/metagpt/provider/openai_api.py@@ -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_LANGUAGEcommand = f"Translate the above summary into a {language} title of less than {max_words} words."