From 587dab23f00d046e820ecf73d37a55c62cedc9f5 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 24 Oct 2024 02:35:17 -0700 Subject: [PATCH] fix --- src/lib/components/chat/Chat.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index e8f1d8162..051ae306b 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1903,7 +1903,7 @@ const generateChatTitle = async (messages) => { if ($settings?.title?.auto ?? true) { const lastMessage = messages.at(-1); - const modelId = electedModels[0]; + const modelId = selectedModels[0]; const title = await generateTitle(localStorage.token, modelId, messages, $chatId).catch( (error) => { @@ -1942,7 +1942,7 @@ } const lastMessage = messages.at(-1); - const modelId = electedModels[0]; + const modelId = selectedModels[0]; let generatedTags = await generateTags(localStorage.token, modelId, messages, $chatId).catch( (error) => {