mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
Chore: Update @langchain/community (#3787)
* update package versions * fix updated field defs due to lib update * Merge branch 'main' into chore/Upgrade-LC-version # Conflicts: # packages/components/package.json # pnpm-lock.yaml * lintfix * fix follow up prompt dialog * lintfix --------- Co-authored-by: Henry <hzj94@hotmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface'
|
||||
import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils'
|
||||
import { JinaEmbeddings, JinaEmbeddingsParams } from '@langchain/community/embeddings/jina'
|
||||
import { JinaEmbeddings } from '@langchain/community/embeddings/jina'
|
||||
|
||||
class JinaAIEmbedding_Embeddings implements INode {
|
||||
label: string
|
||||
@@ -45,12 +45,11 @@ class JinaAIEmbedding_Embeddings implements INode {
|
||||
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
||||
const apiKey = getCredentialParam('jinaAIAPIKey', credentialData, nodeData)
|
||||
|
||||
const obj: JinaEmbeddingsParams = {
|
||||
const model = new JinaEmbeddings({
|
||||
apiKey: apiKey,
|
||||
model: modelName
|
||||
}
|
||||
})
|
||||
|
||||
const model = new JinaEmbeddings(obj)
|
||||
return model
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user