Skip to content

Commit 982229d

Browse files
committed
1 parent 4d0dcfb commit 982229d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

chatgpt/bravegpt/bravegpt.user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.1.15.5
151+
// @version 2025.1.15.6
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -3407,9 +3407,8 @@
34073407
function processStreamText({ done, value }) {
34083408

34093409
// Handle stream done
3410-
if (done) { handleProcessCompletion() ; return }
34113410
let chunk = new TextDecoder('utf8').decode(new Uint8Array(value))
3412-
if (chunk.includes(apis[caller.api].watermark)) { handleProcessCompletion() ; return }
3411+
if (done || chunk.includes(apis[caller.api].watermark)) return handleProcessCompletion()
34133412
this.timeout = setTimeout(handleProcessCompletion, 500) // since reader.read() doesn't signal done in Chromium
34143413

34153414
// Process/show chunk

0 commit comments

Comments
 (0)