mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
fixbug: exceed length
This commit is contained in:
parent
58dd5b8787
commit
ae414fccfa
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue