mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
remove model name
This commit is contained in:
+1
-20
@@ -29,28 +29,10 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
|||||||
type: 'credential',
|
type: 'credential',
|
||||||
credentialNames: ['googleVertexAuth']
|
credentialNames: ['googleVertexAuth']
|
||||||
}
|
}
|
||||||
this.inputs = [
|
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'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {
|
async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {
|
||||||
const model = nodeData.inputs?.modelName as string
|
|
||||||
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
||||||
const googleApplicationCredentialFilePath = getCredentialParam('googleApplicationCredentialFilePath', credentialData, nodeData)
|
const googleApplicationCredentialFilePath = getCredentialParam('googleApplicationCredentialFilePath', credentialData, nodeData)
|
||||||
|
|
||||||
@@ -58,7 +40,6 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
|||||||
keyFile: googleApplicationCredentialFilePath,
|
keyFile: googleApplicationCredentialFilePath,
|
||||||
};
|
};
|
||||||
const obj: GoogleVertexAIEmbeddingsParams = {
|
const obj: GoogleVertexAIEmbeddingsParams = {
|
||||||
model:model,
|
|
||||||
authOptions,
|
authOptions,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user