mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
Addition of Google Gemini Chat Model, Credential and Associated Embeddings
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class GoogleGenerativeAICredential implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
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.inputs = [
|
||||
{
|
||||
label: 'Google AI API Key',
|
||||
name: 'googleGenerativeAPIKey',
|
||||
type: 'password'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: GoogleGenerativeAICredential }
|
||||
Reference in New Issue
Block a user