File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 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// @icon 64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
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
You can’t perform that action at this time.
0 commit comments