mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 18:56:32 +00:00
loadings
This commit is contained in:
parent
84b7c4325d
commit
7836cbf8f6
@ -488,6 +488,7 @@ export default {
|
||||
axios.get('/get_available_models')
|
||||
.then(response => {
|
||||
//console.log(`Models list recovered successfuly: ${JSON.stringify(response.data)}`)
|
||||
console.log(" models",response.data.length)
|
||||
this.models = response.data;
|
||||
})
|
||||
.catch(error => {
|
||||
@ -499,6 +500,9 @@ export default {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
if (model_object) {
|
||||
if (model_object.isInstalled) {
|
||||
if (!this.isLoading) {
|
||||
|
||||
|
||||
if (this.configFile.model != model_object.title) {
|
||||
this.update_model(model_object.title)
|
||||
this.configFile.model = model_object.title
|
||||
@ -510,6 +514,7 @@ export default {
|
||||
} else {
|
||||
this.$refs.toast.showToast("Model:\n" + model_object.title + "\nis not installed", 4, false)
|
||||
}
|
||||
}
|
||||
nextTick(() => {
|
||||
feather.replace()
|
||||
|
||||
@ -641,13 +646,14 @@ export default {
|
||||
|
||||
console.log("Upgrading backend")
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
this.isLoading = true
|
||||
this.update_setting('backend', value, (res) => {
|
||||
this.refresh();
|
||||
console.log("Backend changed");
|
||||
console.log(res);
|
||||
this.$refs.toast.showToast("Backend changed.", 4, true)
|
||||
this.settingsChanged = true
|
||||
|
||||
this.isLoading = false
|
||||
nextTick(() => {
|
||||
feather.replace()
|
||||
|
||||
@ -662,7 +668,12 @@ export default {
|
||||
|
||||
console.log("Upgrading model")
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
this.update_setting('model', value, (res) => { console.log("Model changed"); this.fetchModels(); })
|
||||
this.isLoading = true
|
||||
this.update_setting('model', value, (res) => {
|
||||
console.log("Model changed");
|
||||
this.fetchModels();
|
||||
this.isLoading = false
|
||||
})
|
||||
},
|
||||
applyConfiguration() {
|
||||
if (!this.configFile.model) {
|
||||
|
Loading…
Reference in New Issue
Block a user