Timothy J. Baek 10 tháng trước cách đây
mục cha
commit
16f09fff63
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/lib/components/chat/Chat.svelte

+ 2 - 2
src/lib/components/chat/Chat.svelte

@@ -634,7 +634,7 @@
 
 		let docs = [];
 
-		if (model.info.meta.knowledge) {
+		if (model?.info?.meta?.knowledge ?? false) {
 			docs = model.info.meta.knowledge;
 		}
 
@@ -842,7 +842,7 @@
 
 		let docs = [];
 
-		if (model.info.meta.knowledge) {
+		if (model?.info?.meta?.knowledge ?? false) {
 			docs = model.info.meta.knowledge;
 		}