Update Chroma_Existing.ts

add accidentally removed chromaApiKey
This commit is contained in:
Henry Heng 2023-09-08 14:32:46 +01:00 committed by GitHub
parent bf459bf5ab
commit f9f18b6d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ class Chroma_Existing_VectorStores implements INode {
filter?: object | undefined
} = { collectionName }
if (chromaURL) obj.url = chromaURL
if (chromaApiKey) obj.chromaApiKey = chromaApiKey
if (chromaMetadataFilter) {
const metadatafilter = typeof chromaMetadataFilter === 'object' ? chromaMetadataFilter : JSON.parse(chromaMetadataFilter)
obj.filter = metadatafilter