From 6655f9fcd5bcdbbac38926978db3b181e5a12ff1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 14 Sep 2025 16:28:23 +0800 Subject: [PATCH] bugfix --- bricks/llm.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bricks/llm.js b/bricks/llm.js index 93fbd4a..22aae45 100644 --- a/bricks/llm.js +++ b/bricks/llm.js @@ -123,13 +123,12 @@ bricks.ModelOutput = class extends bricks.VBox { } if (data.content){ this.received_content += data.content; - data.content = bricks.escapeSpecialChars(this.received_content); - bricks.escapeSpecialChars(data.content) } + data.content = bricks.escapeSpecialChars(this.received_content); if (data.reasoning_content){ this.received_reasoning_content += data.reasoning_content; - data.reasoning_content = bricks.escapeSpecialChars(this.received_reasoning_content); } + data.reasoning_content = bricks.escapeSpecialChars(this.received_reasoning_content); this.run = null; this.filler.clear_widgets(); if (typeof this.output_view === 'string'){ @@ -379,11 +378,7 @@ bricks.LlmIO = class extends bricks.VBox { { widgettype:"Svg", options: { - url:"/appbase/show_icon.dspy", - method: "POST", - params: { - "id": "${iconid}" - } + url:"/appbase/show_icon.dspy?id=${iconid}" } }, {