diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index 593a7a78c..c4774aaae 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -200,7 +200,7 @@ await chatId.set('local'); } await tick(); - } else if (chat.chat["models"][0] == "") { + } else if (chat.chat["models"] != selectedModels) { // If model is not saved in DB, then save selectedmodel when message is sent chat = await updateChatById(localStorage.token, $chatId, {