bugfix
This commit is contained in:
parent
0b6be13ec0
commit
1bb58a4fec
@ -1098,7 +1098,7 @@ bricks.UiVideo =class extends bricks.UiStr {
|
|||||||
url: bricks_resource('imgs/right_arrow.svg')});
|
url: bricks_resource('imgs/right_arrow.svg')});
|
||||||
this.add_widget(this.icon);
|
this.add_widget(this.icon);
|
||||||
this.icon.bind('click', this.play_audio.bind(this));
|
this.icon.bind('click', this.play_audio.bind(this));
|
||||||
this.player = new bricks.VideoPlayer({
|
this.player = new bricks.Video({
|
||||||
url:this.value
|
url:this.value
|
||||||
});
|
});
|
||||||
if (this.autoplay){
|
if (this.autoplay){
|
||||||
|
|||||||
@ -120,15 +120,6 @@ bricks.ModelOutput = class extends bricks.VBox {
|
|||||||
this.received_reasoning_content = '';
|
this.received_reasoning_content = '';
|
||||||
this.run.stop_timepass();
|
this.run.stop_timepass();
|
||||||
this.content.remove_widget(this.run);
|
this.content.remove_widget(this.run);
|
||||||
if(this.textvoice){
|
|
||||||
this.upstreaming = new bricks.UpStreaming({
|
|
||||||
url:this.tts_url
|
|
||||||
});
|
|
||||||
this.upstreaming.go();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (this.upstreaming){
|
|
||||||
this.upstreaming.send(data.content);
|
|
||||||
}
|
}
|
||||||
this.run = null;
|
this.run = null;
|
||||||
this.filler.clear_widgets();
|
this.filler.clear_widgets();
|
||||||
@ -169,9 +160,7 @@ bricks.ModelOutput = class extends bricks.VBox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
finish(){
|
finish(){
|
||||||
if (this.upstreaming){
|
console.log('finished')
|
||||||
this.upstreaming.finish();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -272,9 +261,12 @@ bricks.LlmModel = class extends bricks.JsWidget {
|
|||||||
console.log(l, 'is not a json data');
|
console.log(l, 'is not a json data');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.opts.response_mode == 'async' && d.status != 'SUCCESSED'){
|
if (this.opts.response_mode == 'async'){
|
||||||
return;
|
if(d.status != 'SUCCESSED'){
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
console.log('l=', l, 'd=', d);
|
||||||
mout.update_data(d);
|
mout.update_data(d);
|
||||||
}
|
}
|
||||||
chunk_ended(){
|
chunk_ended(){
|
||||||
|
|||||||
@ -105,7 +105,7 @@ bricks.QAFrame = class extends bricks.VBox {
|
|||||||
console.log('show_courseware(), d=', d);
|
console.log('show_courseware(), d=', d);
|
||||||
switch(d.type){
|
switch(d.type){
|
||||||
case 'video':
|
case 'video':
|
||||||
w = new bricks.VideoPlayer({
|
w = new bricks.Video({
|
||||||
width:'100%',
|
width:'100%',
|
||||||
height:'100%',
|
height:'100%',
|
||||||
url:d.url,
|
url:d.url,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user