diff --git a/public/script.js b/public/script.js index 75bded623..dd650b2f0 100644 --- a/public/script.js +++ b/public/script.js @@ -3423,7 +3423,7 @@ class StreamingProcessor { for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) { timestamps.push(Date.now()); if (this.isStopped || this.abortController.signal.aborted) { - return; + return this.result; } this.toolCalls = toolCalls;