From 6ececb2cebcfd48659745eeb38145c61bb7a605d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:16:26 +0200 Subject: [PATCH] Fix text display on stream abort --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;