mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Voyage AI - Credentials, Embeddings and Rerank (#2015)
* Voyage AI - Credentials and Embeddings * reranker and fixes for embeddings
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class VoyageAIApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Voyage AI API'
|
||||
this.name = 'voyageAIApi'
|
||||
this.version = 1.0
|
||||
this.description =
|
||||
'Refer to <a target="_blank" href="https://docs.voyageai.com/install/#authentication-with-api-keys">official guide</a> on how to get an API Key'
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Voyage AI Endpoint',
|
||||
name: 'endpoint',
|
||||
type: 'string',
|
||||
default: 'https://api.voyageai.com/v1/embeddings'
|
||||
},
|
||||
{
|
||||
label: 'Voyage AI API Key',
|
||||
name: 'apiKey',
|
||||
type: 'password'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: VoyageAIApi }
|
||||
Reference in New Issue
Block a user