Timothy Jaeryang Baek há 1 semana atrás
pai
commit
9677871ce7
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/lib/components/chat/Chat.svelte

+ 4 - 1
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