From 6ef37eade3443dc30f3704ccbe1a450cc9aae8ec Mon Sep 17 00:00:00 2001 From: Yongtae Date: Sat, 5 Aug 2023 03:19:35 +0900 Subject: [PATCH] remove model name --- .../GoogleVertexAIEmbedding.ts | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts b/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts index 1c491682..3d76585d 100644 --- a/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts +++ b/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts @@ -29,28 +29,10 @@ class GoogleVertexAIEmbedding_Embeddings implements INode { type: 'credential', credentialNames: ['googleVertexAuth'] } - this.inputs = [ - { - label: 'Model Name', - name: 'modelName', - type: 'options', - options: [ - { - label: 'textembedding-gecko', - name: 'textembedding-gecko' - }, - { - label: 'textembedding-gecko@001', - name: 'textembedding-gecko@001' - } - ], - default: 'textembedding-gecko' - } - ] + this.inputs = [] } async init(nodeData: INodeData, _: string, options: ICommonObject): Promise { - const model = nodeData.inputs?.modelName as string const credentialData = await getCredentialData(nodeData.credential ?? '', options) const googleApplicationCredentialFilePath = getCredentialParam('googleApplicationCredentialFilePath', credentialData, nodeData) @@ -58,7 +40,6 @@ class GoogleVertexAIEmbedding_Embeddings implements INode { keyFile: googleApplicationCredentialFilePath, }; const obj: GoogleVertexAIEmbeddingsParams = { - model:model, authOptions, }