mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 22:39:03 +00:00
fix: import models
This commit is contained in:
parent
5c6373e057
commit
2981caa34b
@ -307,9 +307,15 @@
|
|||||||
|
|
||||||
for (const model of savedModels) {
|
for (const model of savedModels) {
|
||||||
if (model?.info ?? false) {
|
if (model?.info ?? false) {
|
||||||
await updateModelById(localStorage.token, model.id, model.info).catch((error) => {
|
if ($models.find((m) => m.id === model.id)) {
|
||||||
return null;
|
await updateModelById(localStorage.token, model.id, model.info).catch((error) => {
|
||||||
});
|
return null;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
await addNewModel(localStorage.token, model.info).catch((error) => {
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user