This commit is contained in:
yumoqing 2025-09-09 10:52:34 +08:00
parent 889e511ca7
commit eca8698b23

View File

@ -272,13 +272,10 @@ bricks.LlmModel = class extends bricks.JsWidget {
console.log(l, 'is not a json data'); console.log(l, 'is not a json data');
return return
} }
if (! d.content && ! d.reasoning_content){ if (this.opts.response_mode == 'async' and d.status != 'SUCCESSED'){
console.log(l, 'content is null and reasoning_content is null');
return; return;
} }
// d.content = bricks.escapeSpecialChars(d.content);
mout.update_data(d); mout.update_data(d);
// console.log('stream data=', d);
} }
chunk_ended(){ chunk_ended(){
console.log('chunk end'); console.log('chunk end');