Compare commits

..

No commits in common. "1459033c888553971a13de1698a6469ddfd67f31" and "52afd2c84138ca3b5e89bdf7640ca935dd6c82ec" have entirely different histories.

3 changed files with 3 additions and 12 deletions

View File

@ -584,10 +584,3 @@ hr {
.fullscreen {
margin-left: auto;
}
.thinking-content {
background-color: #f0d0d0;
}
.resp-content {
background-color: #f0d0f0;
}

View File

@ -71,7 +71,7 @@ bricks.ModelOutput = class extends bricks.VBox {
this.logid = null;
this.run = new bricks.BaseRunning({target:this});
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.content.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
this.content.add_widget(this.filler);

View File

@ -62,11 +62,9 @@ bricks.LlmOut = class extends bricks.VBox {
}
this.clear_widgets();
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({
mdtext: txt,
css: 'thinking-content',
bgcolor: '#f0d0d0',
width: '100%'
});
this.add_widget(this.rc_w);
@ -75,7 +73,6 @@ bricks.LlmOut = class extends bricks.VBox {
var txt = bricks.escapeSpecialChars(this.content);
this.c_w = new bricks.MdWidget({
mdtext: txt,
css: 'resp-content';
width: '100%'
});
this.add_widget(this.c_w);
@ -98,3 +95,4 @@ bricks.LlmOut = class extends bricks.VBox {
}
}
bricks.Factory.register('LlmOut', bricks.LlmOut);