Skip to content

Commit

Permalink
fix(Pinecone Vector Store Node): Fix vector store nodes execution iss…
Browse files Browse the repository at this point in the history
…ue (#8968)

Signed-off-by: Oleg Ivaniv <[email protected]>
  • Loading branch information
OlegIvaniv authored Mar 26, 2024
1 parent 264f918 commit 323b901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@n8n/nodes-langchain/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 323b901

Please sign in to comment.