Skip to content

Commit 7eb6e73

Browse files
committed
remove length limit
1 parent 3b96fd4 commit 7eb6e73

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/Chat/Chat.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ export const Chat = memo(({stopConversationRef}: Props) => {
146146
let queue: any[] = [];
147147
let text = '';
148148
let notFinishData = ""
149-
let a = 0
150-
while ((!done || queue.length !== 0) && a < 100) {
151-
a+=1
149+
while (!done || queue.length !== 0) {
152150
const {value} = await reader.read();
153151
let chunkValue = decoder.decode(value);
154152
const regex = /(?<=})(?={)/g;

0 commit comments

Comments
 (0)