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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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