mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 05:01:10 +03:00
[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:
@@ -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 }
|
||||
Reference in New Issue
Block a user