From eca8698b2355e2dad6105988737521172f6b9d85 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 9 Sep 2025 10:52:34 +0800 Subject: [PATCH] bugfix --- bricks/llm.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bricks/llm.js b/bricks/llm.js index 874c40d..54938f1 100644 --- a/bricks/llm.js +++ b/bricks/llm.js @@ -272,13 +272,10 @@ bricks.LlmModel = class extends bricks.JsWidget { console.log(l, 'is not a json data'); return } - if (! d.content && ! d.reasoning_content){ - console.log(l, 'content is null and reasoning_content is null'); + if (this.opts.response_mode == 'async' and d.status != 'SUCCESSED'){ return; - } - // d.content = bricks.escapeSpecialChars(d.content); + } mout.update_data(d); - // console.log('stream data=', d); } chunk_ended(){ console.log('chunk end');