Selaa lähdekoodia

Better solution to handle edge cases

Brandon Hulston 1 vuosi sitten
vanhempi
commit
1f66bbba98
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/routes/(app)/c/[id]/+page.svelte

+ 1 - 1
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, {