bugfix
This commit is contained in:
parent
80303d1c82
commit
1a79682dfc
@ -142,10 +142,11 @@ bricks.ModelOutput = class extends bricks.VBox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.received_reasoning_content.length>0){
|
if (this.received_reasoning_content.length>0){
|
||||||
data.content = "```\\n" + this.received_reasoning_content + "\\n```\\n" + this.received_content;
|
data.content = "```\n" + this.received_reasoning_content + "\n```\n" + this.received_content;
|
||||||
} else {
|
} else {
|
||||||
data.content = this.received_content
|
data.content = this.received_content
|
||||||
}
|
}
|
||||||
|
d.content = bricks.escapeSpecialChars(d.content);
|
||||||
var desc = bricks.apply_data(this.output_view, data);
|
var desc = bricks.apply_data(this.output_view, data);
|
||||||
var w = await bricks.widgetBuild(desc, this.llmio);
|
var w = await bricks.widgetBuild(desc, this.llmio);
|
||||||
if (! w){
|
if (! w){
|
||||||
@ -270,7 +271,7 @@ bricks.LlmModel = class extends bricks.JsWidget {
|
|||||||
console.log(l, 'content is null and reasoning_content is null');
|
console.log(l, 'content is null and reasoning_content is null');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
d.content = bricks.escapeSpecialChars(d.content);
|
// d.content = bricks.escapeSpecialChars(d.content);
|
||||||
mout.update_data(d);
|
mout.update_data(d);
|
||||||
// console.log('stream data=', d);
|
// console.log('stream data=', d);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user