From 4eb8b1450cd1d96a7b9a480d70e5bf58dedd90e6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 15 Nov 2024 22:09:06 -0800 Subject: [PATCH] refac --- src/lib/components/admin/Settings/Documents.svelte | 13 +++---------- src/lib/components/admin/Settings/Models.svelte | 1 + 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index 39e83badc..fe0826e30 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -376,19 +376,12 @@ {#if embeddingEngine === 'ollama'}
- + />
{:else} diff --git a/src/lib/components/admin/Settings/Models.svelte b/src/lib/components/admin/Settings/Models.svelte index ccc59838f..0abcd3ec5 100644 --- a/src/lib/components/admin/Settings/Models.svelte +++ b/src/lib/components/admin/Settings/Models.svelte @@ -81,6 +81,7 @@ }); } + _models.set(await getModels(localStorage.token)); await init(); };