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
37c87e3a
Commit
37c87e3a
authored
May 29, 2024
by
Timothy J. Baek
Browse files
fix: model import
parent
7f8be4a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/lib/components/workspace/Models.svelte
src/lib/components/workspace/Models.svelte
+2
-2
No files found.
src/lib/components/workspace/Models.svelte
View file @
37c87e3a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
import { onMount, getContext } from 'svelte';
import { onMount, getContext } from 'svelte';
import { WEBUI_NAME, modelfiles, models, settings, user } from '$lib/stores';
import { WEBUI_NAME, modelfiles, models, settings, user } from '$lib/stores';
import { addNewModel, deleteModelById, getModelInfos } from '$lib/apis/models';
import { addNewModel, deleteModelById, getModelInfos
, updateModelById
} from '$lib/apis/models';
import { deleteModel } from '$lib/apis/ollama';
import { deleteModel } from '$lib/apis/ollama';
import { goto } from '$app/navigation';
import { goto } from '$app/navigation';
...
@@ -307,7 +307,7 @@
...
@@ -307,7 +307,7 @@
for (const model of savedModels) {
for (const model of savedModels) {
if (model?.info ?? false) {
if (model?.info ?? false) {
await
addNew
Model(localStorage.token, model.info).catch((error) => {
await
update
Model
ById
(localStorage.token,
model.id,
model.info).catch((error) => {
return null;
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