bugfix
This commit is contained in:
parent
634881c978
commit
07f1716d61
@ -126,22 +126,6 @@ bricks.ModelOutput = class extends bricks.VBox {
|
||||
if (typeof this.output_view === 'string'){
|
||||
this.output_view = JSON.parse(this.output_view);
|
||||
}
|
||||
if (this.response_mode == 'stream'){
|
||||
if(data.content) this.received_content += data.content;
|
||||
if(data.reasoning_content){
|
||||
this.received_reasoning_content += data.reasoning_content;
|
||||
}
|
||||
if (this.received_reasoning_content.length>0){
|
||||
data.content = "```\n" + this.received_reasoning_content + "\n```\n" + this.received_content;
|
||||
} else {
|
||||
data.content = this.received_content
|
||||
}
|
||||
} else {
|
||||
if (data.reasoning_content){
|
||||
data.content = "```\n" + data.reasoning_content + "\n```\n" + data.content;
|
||||
}
|
||||
}
|
||||
data.content = bricks.escapeSpecialChars(data.content);
|
||||
var desc = bricks.apply_data(this.output_view, data);
|
||||
var w = await bricks.widgetBuild(desc, this.llmio);
|
||||
if (! w){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user