Merge pull request #1396 from vinodkiran/FEATURE/google-gemini

FEATURE/Google Gemini - Support for Chat Model, Credential & Embeddings
This commit is contained in:
Henry Heng
2023-12-15 17:22:37 +00:00
committed by GitHub
6 changed files with 238 additions and 0 deletions
@@ -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 }