From 323b9016c8c2409d5b72c6cc2fdb0cf6f2ba118b Mon Sep 17 00:00:00 2001 From: oleg Date: Tue, 26 Mar 2024 10:05:45 +0100 Subject: [PATCH] fix(Pinecone Vector Store Node): Fix vector store nodes execution issue (#8968) Signed-off-by: Oleg Ivaniv --- packages/@n8n/nodes-langchain/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@n8n/nodes-langchain/utils/helpers.ts b/packages/@n8n/nodes-langchain/utils/helpers.ts index 2ae4754e767cf..b67fa7bdcd96d 100644 --- a/packages/@n8n/nodes-langchain/utils/helpers.ts +++ b/packages/@n8n/nodes-langchain/utils/helpers.ts @@ -22,7 +22,7 @@ export function getMetadataFiltersValues( } export function isChatInstance(model: unknown): model is BaseChatModel { - const namespace = (model as BaseLLM | BaseChatModel).lc_namespace; + const namespace = (model as BaseLLM | BaseChatModel)?.lc_namespace ?? []; return namespace.includes('chat_models'); }