bugfix
This commit is contained in:
parent
800577521b
commit
5e3be5eb8d
@ -80,6 +80,7 @@ bricks.LlmOut = class extends bricks.VBox {
|
||||
this.v_w = null;
|
||||
this.i_w = null;
|
||||
this.a_w = null;
|
||||
this.glb_w = null;
|
||||
this.images = [];
|
||||
this.reasoning_content = '';
|
||||
this.content = '';
|
||||
@ -105,6 +106,12 @@ bricks.LlmOut = class extends bricks.VBox {
|
||||
this.a_w.add_url(url);
|
||||
}
|
||||
}
|
||||
if (data.glb){
|
||||
this.glb_w = new bricks.GlbViewer({
|
||||
url:data.glb,
|
||||
width: '100%'
|
||||
}
|
||||
}
|
||||
if (data.video){
|
||||
if (!this.v_w){
|
||||
this.v_w = new bricks.VideoPlayer({
|
||||
@ -166,6 +173,9 @@ bricks.LlmOut = class extends bricks.VBox {
|
||||
if (this.v_w) {
|
||||
this.add_widget(this.v_w);
|
||||
}
|
||||
if (this.glb_w){
|
||||
this.add_widget(this.glb_w);
|
||||
}
|
||||
if (this.a_w) {
|
||||
this.add_widget(this.a_w);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user