Commit 37c87e3a authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: model import

parent 7f8be4a7
...@@ -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 addNewModel(localStorage.token, model.info).catch((error) => { await updateModelById(localStorage.token, model.id, model.info).catch((error) => {
return null; return null;
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment