mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
feat: import models
This commit is contained in:
@@ -259,9 +259,11 @@
|
||||
console.log(savedModels);
|
||||
|
||||
for (const model of savedModels) {
|
||||
await addNewModel(localStorage.token, model).catch((error) => {
|
||||
return null;
|
||||
});
|
||||
if (model?.info ?? false) {
|
||||
await addNewModel(localStorage.token, model.info).catch((error) => {
|
||||
return null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
await models.set(await getModels(localStorage.token));
|
||||
|
||||
Reference in New Issue
Block a user