File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ export async function generateAnswersWithBingWebApi(
3737 abortController : controller ,
3838 toneStyle : modelMode ,
3939 jailbreakConversationId : sydneyMode ,
40- onProgress : ( token ) => {
41- answer += token
40+ onProgress : ( message ) => {
41+ answer = message
4242 // reference markers [^number^]
4343 answer = answer . replaceAll ( / \[ \^ ( \d + ) \^ \] / g, '<sup>$1</sup>' )
4444 port . postMessage ( { answer : answer , done : false , session : null } )
Original file line number Diff line number Diff line change @@ -490,8 +490,8 @@ export default class BingAIClient {
490490 return
491491 }
492492 // get the difference between the current text and the previous text
493- const difference = updatedText . substring ( replySoFar . length )
494- onProgress ( difference )
493+ // const difference = updatedText.substring(replySoFar.length)
494+ onProgress ( updatedText )
495495 if ( updatedText . trim ( ) . endsWith ( stopToken ) ) {
496496 stopTokenFound = true
497497 // remove stop token from updated text
You can’t perform that action at this time.
0 commit comments