Browse Source

fix: chat history model load

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
9dc75f3002
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ?? ''];