From 38519a2654916cb6068cd2f0f12a281de91afc68 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 24 Oct 2023 02:09:24 -0700 Subject: [PATCH] Update SettingsModal.svelte --- src/lib/components/chat/SettingsModal.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index 58d27e4c..66e39525 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -39,6 +39,11 @@ if (res) { toast.success('Server connection verified'); + saveSettings( + API_BASE_URL === '' ? BUILD_TIME_API_BASE_URL : API_BASE_URL, + system != '' ? system : null, + temperature != 0.8 ? temperature : null + ); } };