[Feature] added Jina AI Embedding support (#3355)

* added Jina AI Embedding support

* Update JinaAIEmbedding.ts

Change model name to string type

* removed jina embeddings

* lint fix

---------

Co-authored-by: Henry Heng <henryheng@flowiseai.com>
This commit is contained in:
Chirag
2024-10-17 06:19:46 +05:30
committed by GitHub
parent 235fcfeb40
commit 1d193b4dbc
3 changed files with 88 additions and 0 deletions
@@ -0,0 +1,25 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class JinaAICredential implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'JinaAI API'
this.name = 'jinaAIApi'
this.version = 1.0
this.description = 'You can get your API key from official <a target="_blank" href="https://jina.ai/">console</a> here.'
this.inputs = [
{
label: 'JinaAI API Key',
name: 'jinaAIAPIKey',
type: 'password'
}
]
}
}
module.exports = { credClass: JinaAICredential }