🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: exceed length
莘权 马ae414fccfada
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.pyindex ac8feb738..c08a34f7e 100644--- a/metagpt/provider/openai_api.py+++ b/metagpt/provider/openai_api.py@@ -247,7 +247,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):summaries = []for ws in text_windows:- response = await self.get_summary(ws)+ response = await self.get_summary(ws, max_words=max_response_token_count)summaries.append(response)if len(summaries) == 1:return summaries[0]