Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
2981caa3
Commit
2981caa3
authored
May 29, 2024
by
Timothy J. Baek
Browse files
fix: import models
parent
5c6373e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/lib/components/workspace/Models.svelte
src/lib/components/workspace/Models.svelte
+9
-3
No files found.
src/lib/components/workspace/Models.svelte
View file @
2981caa3
...
...
@@ -307,9 +307,15 @@
for (const model of savedModels) {
if (model?.info ?? false) {
await updateModelById(localStorage.token, model.id, model.info).catch((error) => {
return null;
});
if ($models.find((m) => m.id === model.id)) {
await updateModelById(localStorage.token, model.id, model.info).catch((error) => {
return null;
});
} else {
await addNewModel(localStorage.token, model.info).catch((error) => {
return null;
});
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment