This commit is contained in:
yumoqing 2025-12-11 11:45:04 +08:00
parent ae6f1f4cb8
commit b8c8efd459

View File

@ -208,6 +208,7 @@ bricks.LlmModel = class extends bricks.JsWidget {
var d = this.inputdata2uploaddata(data);
var hr = new bricks.HttpResponseStream();
var resp = await hr.post(this.opts.url, {params:d});
if (! resp) return;
await hr.handle_chunk(resp, this.chunk_response.bind(this, mout));
this.chunk_ended();
} else {
@ -215,6 +216,7 @@ bricks.LlmModel = class extends bricks.JsWidget {
console.log('data_inouted=', data, 'upload_data=', d);
var hj = new bricks.HttpJson()
var resp = await hj.post(this.opts.url, {params:d});
if (! resp) return;
mout.update_data(resp);
}
mout.estimate_w.show();