Fix text display on stream abort

6ececb2cebcfd48659745eeb38145c61bb7a605d

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -3423,7 +3423,7 @@ class StreamingProcessor {
3423 for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) {3423 for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) {
3424 timestamps.push(Date.now());3424 timestamps.push(Date.now());
3425 if (this.isStopped || this.abortController.signal.aborted) {3425 if (this.isStopped || this.abortController.signal.aborted) {
3426 return;3426 return this.result;
3427 }3427 }
34283428
3429 this.toolCalls = toolCalls;3429 this.toolCalls = toolCalls;