From dc68613371cb188442d88208764530a9c9c2e511 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 9 Sep 2025 14:11:56 +0800 Subject: [PATCH] bugfix --- bricks/llm.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bricks/llm.js b/bricks/llm.js index 83bdc17..1a84a09 100644 --- a/bricks/llm.js +++ b/bricks/llm.js @@ -121,6 +121,14 @@ bricks.ModelOutput = class extends bricks.VBox { this.run.stop_timepass(); this.content.remove_widget(this.run); } + if (data.content){ + this.received_content += data.content; + this.content = this.received_content; + } + if (data.reasoning_content){ + this.reasoning_content += data.reasoning_content; + data.reasoning_content = this.reasoning_content; + } this.run = null; this.filler.clear_widgets(); if (typeof this.output_view === 'string'){