mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +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() {
|
||||
|
||||
const modelEntry = this.addModel
|
||||
|
||||
console.log('cancel install', modelEntry)
|
||||
// const keys = Object.keys(this.addModel)
|
||||
// if (keys.includes('url')) {
|
||||
// return
|
||||
@ -1384,12 +1384,14 @@ export default {
|
||||
let path = model_object.path;
|
||||
this.showProgress = true;
|
||||
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
|
||||
const progressListener = (response) => {
|
||||
console.log("received something");
|
||||
if (response.status && response.progress <= 100) {
|
||||
this.addModel=response
|
||||
console.log(`Progress`, response);
|
||||
model_object.progress = response.progress
|
||||
model_object.speed = response.speed
|
||||
|
Loading…
Reference in New Issue
Block a user