Browse Source

Merge pull request #2966 from open-webui/dev

fix
Timothy Jaeryang Baek 11 tháng trước cách đây
mục cha
commit
8947da57af
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;
 		}