diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index 80f7a7ef1..3758d4f79 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -99,6 +99,7 @@ let titleAutoGenerateModel = ''; // Chats + let saveChatHistory = true; let importFiles; let showDeleteConfirm = false; @@ -235,8 +236,9 @@ } }; - const toggleAuthHeader = async () => { - authEnabled = !authEnabled; + const toggleSaveChatHistory = async () => { + saveChatHistory = !saveChatHistory; + saveSettings({ saveChatHistory: saveChatHistory }); }; const pullModelHandler = async () => { @@ -576,6 +578,8 @@ titleAutoGenerateModel = settings.titleAutoGenerateModel ?? ''; gravatarEmail = settings.gravatarEmail ?? ''; + saveChatHistory = settings.saveChatHistory ?? true; + authEnabled = settings.authHeader !== undefined ? true : false; if (authEnabled) { authType = settings.authHeader.split(' ')[0]; @@ -1616,6 +1620,64 @@ {:else if selectedTab === 'chats'}
+
+
+
Chat History
+ + +
+ +
+ This setting does not sync across browsers or devices. +
+
+ +
+