From bfdf4f7a8a94cac8ab30742af772eba97d980ebd Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 22 May 2024 22:05:13 -0700 Subject: [PATCH] refac: #2506 --- src/lib/components/chat/Chat.svelte | 4 +++- src/lib/components/chat/MessageInput.svelte | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index f2cf16007..b57a9f6ff 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -622,7 +622,8 @@ if ($settings.saveChatHistory ?? true) { chat = await updateChatById(localStorage.token, _chatId, { messages: messages, - history: history + history: history, + models: selectedModels }); await chats.set(await getChatList(localStorage.token)); } @@ -814,6 +815,7 @@ if ($chatId == _chatId) { if ($settings.saveChatHistory ?? true) { chat = await updateChatById(localStorage.token, _chatId, { + models: selectedModels, messages: messages, history: history }); diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 3f7250c4a..7bb736012 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -587,7 +587,7 @@
-
+