From 16f09fff6399f3b27644a8638dfa3430c826c056 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 9 Jun 2024 18:59:45 -0700 Subject: [PATCH] fix --- src/lib/components/chat/Chat.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 6be474429..b09faf110 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/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; }