fix(Pinecone Vector Store Node): Fix vector store nodes execution issue (#8968)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
oleg
2024-03-26 10:05:45 +01:00
committed by GitHub
parent 264f918d97
commit 323b9016c8

View File

@@ -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');
}