diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 819da85ba1..c7c9b4ebda 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -506,7 +506,10 @@ }; const savedModelIds = async () => { - if ($selectedFolder && $selectedFolder?.data?.model_ids !== selectedModels) { + if ( + $selectedFolder && + JSON.stringify($selectedFolder?.data?.model_ids) !== JSON.stringify(selectedModels) + ) { const res = await updateFolderById(localStorage.token, $selectedFolder.id, { data: { model_ids: selectedModels