mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fixbug: dead loop
This commit is contained in:
parent
795b892b35
commit
67d08cb054
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
|
|||
if data_len + idx > total_len:
|
||||
windows.append(text[idx:])
|
||||
break
|
||||
w = text[idx:data_len]
|
||||
w = text[idx : idx + data_len]
|
||||
windows.append(w)
|
||||
idx += data_len
|
||||
for i in range(len(windows)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue