mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-21 21:27:47 +00:00
Merge branch 'dev' of https://github.com/andzejsp/gpt4all-ui
This commit is contained in:
commit
ada92c2db7
@ -1362,7 +1362,7 @@ export default {
|
|||||||
onCancelInstall() {
|
onCancelInstall() {
|
||||||
|
|
||||||
const modelEntry = this.addModel
|
const modelEntry = this.addModel
|
||||||
|
console.log('cancel install', modelEntry)
|
||||||
// const keys = Object.keys(this.addModel)
|
// const keys = Object.keys(this.addModel)
|
||||||
// if (keys.includes('url')) {
|
// if (keys.includes('url')) {
|
||||||
// return
|
// return
|
||||||
@ -1384,12 +1384,14 @@ export default {
|
|||||||
let path = model_object.path;
|
let path = model_object.path;
|
||||||
this.showProgress = true;
|
this.showProgress = true;
|
||||||
this.progress = 0;
|
this.progress = 0;
|
||||||
console.log("installing...");
|
this.addModel={ model_name: model_object.model.title, binding_folder: this.configFile.binding_name, model_url: model_object.path }
|
||||||
|
console.log("installing...", this.addModel);
|
||||||
|
|
||||||
// Use an arrow function for progressListener
|
// Use an arrow function for progressListener
|
||||||
const progressListener = (response) => {
|
const progressListener = (response) => {
|
||||||
console.log("received something");
|
console.log("received something");
|
||||||
if (response.status && response.progress <= 100) {
|
if (response.status && response.progress <= 100) {
|
||||||
|
this.addModel=response
|
||||||
console.log(`Progress`, response);
|
console.log(`Progress`, response);
|
||||||
model_object.progress = response.progress
|
model_object.progress = response.progress
|
||||||
model_object.speed = response.speed
|
model_object.speed = response.speed
|
||||||
|
Loading…
Reference in New Issue
Block a user