Compare commits
No commits in common. "1459033c888553971a13de1698a6469ddfd67f31" and "52afd2c84138ca3b5e89bdf7640ca935dd6c82ec" have entirely different histories.
1459033c88
...
52afd2c841
@ -584,10 +584,3 @@ hr {
|
|||||||
.fullscreen {
|
.fullscreen {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thinking-content {
|
|
||||||
background-color: #f0d0d0;
|
|
||||||
}
|
|
||||||
.resp-content {
|
|
||||||
background-color: #f0d0f0;
|
|
||||||
}
|
|
||||||
|
|||||||
@ -71,7 +71,7 @@ bricks.ModelOutput = class extends bricks.VBox {
|
|||||||
this.logid = null;
|
this.logid = null;
|
||||||
this.run = new bricks.BaseRunning({target:this});
|
this.run = new bricks.BaseRunning({target:this});
|
||||||
this.content.add_widget(this.run);
|
this.content.add_widget(this.run);
|
||||||
this.filler = new bricks.LlmOut({width: '100%', css: 'card'});
|
this.filler = new bricks.LlmOut({width: '100%'});
|
||||||
this.filler.set_css('filler');
|
this.filler.set_css('filler');
|
||||||
this.content.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
|
this.content.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
|
||||||
this.content.add_widget(this.filler);
|
this.content.add_widget(this.filler);
|
||||||
|
|||||||
@ -62,11 +62,9 @@ bricks.LlmOut = class extends bricks.VBox {
|
|||||||
}
|
}
|
||||||
this.clear_widgets();
|
this.clear_widgets();
|
||||||
if (this.reasoning_content.length) {
|
if (this.reasoning_content.length) {
|
||||||
var txt = bricks.escapeSpecialChars(this.reasoning_content);
|
var txt = bricks.escapeSpecialChars('<think>\n\n' + this.reasoning_content + '\n\n</think>');
|
||||||
this.rc_w = new bricks.MdWidget({
|
this.rc_w = new bricks.MdWidget({
|
||||||
mdtext: txt,
|
mdtext: txt,
|
||||||
css: 'thinking-content',
|
|
||||||
bgcolor: '#f0d0d0',
|
|
||||||
width: '100%'
|
width: '100%'
|
||||||
});
|
});
|
||||||
this.add_widget(this.rc_w);
|
this.add_widget(this.rc_w);
|
||||||
@ -75,7 +73,6 @@ bricks.LlmOut = class extends bricks.VBox {
|
|||||||
var txt = bricks.escapeSpecialChars(this.content);
|
var txt = bricks.escapeSpecialChars(this.content);
|
||||||
this.c_w = new bricks.MdWidget({
|
this.c_w = new bricks.MdWidget({
|
||||||
mdtext: txt,
|
mdtext: txt,
|
||||||
css: 'resp-content';
|
|
||||||
width: '100%'
|
width: '100%'
|
||||||
});
|
});
|
||||||
this.add_widget(this.c_w);
|
this.add_widget(this.c_w);
|
||||||
@ -98,3 +95,4 @@ bricks.LlmOut = class extends bricks.VBox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
bricks.Factory.register('LlmOut', bricks.LlmOut);
|
bricks.Factory.register('LlmOut', bricks.LlmOut);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user