Addition of Google Gemini Chat Model, Credential and Associated Embeddings

This commit is contained in:
vinodkiran
2023-12-15 20:58:08 +05:30
parent 6a17cdc315
commit e7f13c87d8
6 changed files with 239 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 }