Remove unnecessary console.log statement and add error handling for missing Google Application Credential

This commit is contained in:
Yongtae
2023-08-25 17:22:36 +09:00
parent f929a57c71
commit 97a05ed3c4
@@ -82,7 +82,6 @@ class GoogleVertexAI_ChatModels implements INode {
const projectID = getCredentialParam('projectID', credentialData, nodeData) const projectID = getCredentialParam('projectID', credentialData, nodeData)
const authOptions: GoogleAuthOptions = {} const authOptions: GoogleAuthOptions = {}
console.log('credentialData', credentialData)
if (Object.keys(credentialData).length !== 0) { if (Object.keys(credentialData).length !== 0) {
if (!googleApplicationCredentialFilePath && !googleApplicationCredential) if (!googleApplicationCredentialFilePath && !googleApplicationCredential)
throw new Error('Please specify your Google Application Credential') throw new Error('Please specify your Google Application Credential')