From 495919a1d8a35f2561d333f80cf8e7007ae2085f Mon Sep 17 00:00:00 2001 From: Yongtae Date: Fri, 25 Aug 2023 00:40:25 +0900 Subject: [PATCH] Revert "implementation of embedding model" This reverts commit 0830b8fbe573e3c0ac6429831cf56c338dc46ea7. --- .../components/nodes/llms/GoogleVertexAI/GoogleVertexAI.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/components/nodes/llms/GoogleVertexAI/GoogleVertexAI.ts b/packages/components/nodes/llms/GoogleVertexAI/GoogleVertexAI.ts index cb8ae61c..22133535 100644 --- a/packages/components/nodes/llms/GoogleVertexAI/GoogleVertexAI.ts +++ b/packages/components/nodes/llms/GoogleVertexAI/GoogleVertexAI.ts @@ -80,11 +80,11 @@ class GoogleVertexAI_LLMs implements INode { async init(nodeData: INodeData, _: string, options: ICommonObject): Promise { const credentialData = await getCredentialData(nodeData.credential ?? '', options) - const skipExtraCredentialFile = getCredentialParam('skipExtraCredentialFile', credentialData, nodeData) const googleApplicationCredentialFilePath = getCredentialParam('googleApplicationCredentialFilePath', credentialData, nodeData) const googleApplicationCredential = getCredentialParam('googleApplicationCredential', credentialData, nodeData) const projectID = getCredentialParam('projectID', credentialData, nodeData) + if (!skipExtraCredentialFile && !googleApplicationCredentialFilePath && !googleApplicationCredential) throw new Error('Please specify your Google Application Credential') const inputs = [googleApplicationCredentialFilePath, googleApplicationCredential, skipExtraCredentialFile] @@ -115,8 +115,6 @@ class GoogleVertexAI_LLMs implements INode { model: modelName } - if (authOptions) obj.authOptions = authOptions - if (maxOutputTokens) obj.maxOutputTokens = parseInt(maxOutputTokens, 10) if (topP) obj.topP = parseFloat(topP)