bugfix
This commit is contained in:
parent
f581fc9b23
commit
1349527fd7
@ -222,7 +222,7 @@ bricks.LlmModel = class extends bricks.JsWidget {
|
|||||||
if (resp.status == 'FAILED'){
|
if (resp.status == 'FAILED'){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.query_task_status(mout, resp.taskid)
|
await this.query_task_status(mout, resp.taskid)
|
||||||
break;
|
break;
|
||||||
case 'stream':
|
case 'stream':
|
||||||
var d = this.inputdata2uploaddata(data);
|
var d = this.inputdata2uploaddata(data);
|
||||||
@ -257,7 +257,7 @@ bricks.LlmModel = class extends bricks.JsWidget {
|
|||||||
llm_msg_format(){
|
llm_msg_format(){
|
||||||
return this.llm_message_format || {role:'assistant', content:"${content}"}
|
return this.llm_message_format || {role:'assistant', content:"${content}"}
|
||||||
}
|
}
|
||||||
query_task_status(mout, taskid){
|
async query_task_status(mout, taskid){
|
||||||
var pt = this.opts.period_time || 30;
|
var pt = this.opts.period_time || 30;
|
||||||
if (this.query_task) {
|
if (this.query_task) {
|
||||||
this.query_task.cancel()
|
this.query_task.cancel()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user