refactoring_chatmodel

This commit is contained in:
Yongtae
2023-08-24 12:33:45 +09:00
parent b7107ce782
commit 32b0e1584d
@@ -20,9 +20,9 @@ class GoogleVertexAI_ChatModels implements INode {
this.name = 'chatGoogleVertexAI' this.name = 'chatGoogleVertexAI'
this.version = 1.0 this.version = 1.0
this.type = 'ChatGoogleVertexAI' this.type = 'ChatGoogleVertexAI'
this.icon = 'vertexa1i.svg' this.icon = 'vertexai.svg'
this.category = 'Chat Models' this.category = 'Chat Models'
this.description = 'wassyoi' this.description = 'Wrapper around VertexAI large language models that use the Chat endpoint'
this.baseClasses = [this.type, ...getBaseClasses(ChatGoogleVertexAI)] this.baseClasses = [this.type, ...getBaseClasses(ChatGoogleVertexAI)]
this.credential = { this.credential = {
label: 'Connect Credential', label: 'Connect Credential',
@@ -37,7 +37,7 @@ class GoogleVertexAI_ChatModels implements INode {
type: 'options', type: 'options',
options: [ options: [
{ {
label: 'chat-bison11111', label: 'chat-bison',
name: 'chat-bison' name: 'chat-bison'
}, },
{ {
@@ -45,7 +45,7 @@ class GoogleVertexAI_ChatModels implements INode {
name: 'codechat-bison' name: 'codechat-bison'
} }
], ],
default: 'chat-bison11111', default: 'chat-bison',
optional: true optional: true
}, },
{ {
@@ -82,8 +82,8 @@ class GoogleVertexAI_ChatModels implements INode {
const googleApplicationCredential = getCredentialParam('googleApplicationCredential', credentialData, nodeData) const googleApplicationCredential = getCredentialParam('googleApplicationCredential', credentialData, nodeData)
const projectID = getCredentialParam('projectID', credentialData, nodeData) const projectID = getCredentialParam('projectID', credentialData, nodeData)
// if (!skipExtraCredentialFile && !googleApplicationCredentialFilePath && !googleApplicationCredential) if (!skipExtraCredentialFile && !googleApplicationCredentialFilePath && !googleApplicationCredential)
// throw new Error('Please specify your Google Application Credential') throw new Error('Please specify your Google Application Credential')
const inputs = [googleApplicationCredentialFilePath, googleApplicationCredential, skipExtraCredentialFile] const inputs = [googleApplicationCredentialFilePath, googleApplicationCredential, skipExtraCredentialFile]