mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
add mistral
This commit is contained in:
@@ -11,7 +11,8 @@ class GoogleGenerativeAICredential implements INodeCredential {
|
||||
this.label = 'Google Generative AI'
|
||||
this.name = 'googleGenerativeAI'
|
||||
this.version = 1.0
|
||||
this.description = 'Get your <a target="_blank" href="https://ai.google.dev/tutorials/setup">API Key</a> here.'
|
||||
this.description =
|
||||
'You can get your API key from official <a target="_blank" href="https://ai.google.dev/tutorials/setup">page</a> here.'
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Google AI API Key',
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class MistralAICredential implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'MistralAI API'
|
||||
this.name = 'mistralAIApi'
|
||||
this.version = 1.0
|
||||
this.description = 'You can get your API key from official <a target="_blank" href="https://console.mistral.ai/">console</a> here.'
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'MistralAI API Key',
|
||||
name: 'mistralAIAPIKey',
|
||||
type: 'password'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: MistralAICredential }
|
||||
Reference in New Issue
Block a user