Przeglądaj źródła

fix: chat history model load

Timothy J. Baek 1 rok temu
rodzic
commit
9dc75f3002
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/routes/+page.svelte

+ 1 - 1
src/routes/+page.svelte

@@ -372,7 +372,7 @@
 				history = _history;
 			}
 
-			if ('models' in chat) {
+			if ('models' in chat && chat.models !== undefined) {
 				selectedModels = chat.models ?? selectedModels;
 			} else {
 				selectedModels = [chat.model ?? ''];