From 1349527fd7ed52e1b9d939f0da877d284704810a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 16 May 2026 11:46:10 +0800 Subject: [PATCH] bugfix --- bricks/llm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/llm.js b/bricks/llm.js index 78495fb..09c5f83 100644 --- a/bricks/llm.js +++ b/bricks/llm.js @@ -222,7 +222,7 @@ bricks.LlmModel = class extends bricks.JsWidget { if (resp.status == 'FAILED'){ return; } - this.query_task_status(mout, resp.taskid) + await this.query_task_status(mout, resp.taskid) break; case 'stream': var d = this.inputdata2uploaddata(data); @@ -257,7 +257,7 @@ bricks.LlmModel = class extends bricks.JsWidget { llm_msg_format(){ return this.llm_message_format || {role:'assistant', content:"${content}"} } - query_task_status(mout, taskid){ + async query_task_status(mout, taskid){ var pt = this.opts.period_time || 30; if (this.query_task) { this.query_task.cancel()