Timothy Jaeryang Baek 1 week ago
parent
commit
8892c14984
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/components/chat/Chat.svelte

+ 4 - 0
src/lib/components/chat/Chat.svelte

@@ -1454,6 +1454,10 @@
 				? [atSelectedModel.id]
 				: selectedModels;
 
+		if (selectedModelIds.filter((id) => id !== '').length === 0) {
+			return;
+		}
+
 		// Create response messages for each selected model
 		for (const [_modelIdx, modelId] of selectedModelIds.entries()) {
 			const model = $models.filter((m) => m.id === modelId).at(0);