From 044ee2a78c96e4c3552c672c201c27e8990d6629 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 22 Nov 2023 13:07:25 -0800 Subject: [PATCH] fix: model list update after save --- src/lib/components/chat/SettingsModal.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index 8d00e426e..c1aa80c52 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -12,6 +12,7 @@ const saveSettings = async (updated) => { console.log(updated); await settings.set({ ...$settings, ...updated }); + await models.set(await getModels()); localStorage.setItem('settings', JSON.stringify($settings)); };