Преглед изворни кода

Update SettingsModal.svelte

Timothy J. Baek пре 1 година
родитељ
комит
38519a2654
1 измењених фајлова са 5 додато и 0 уклоњено
  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
+			);
 		}
 	};