Przeglądaj źródła

Update SettingsModal.svelte

Timothy J. Baek 1 rok temu
rodzic
commit
38519a2654
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      src/lib/components/chat/SettingsModal.svelte

+ 5 - 0
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
+			);
 		}
 	};