mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 09:01:06 +03:00
lint fix GoogleAuth and GoogleVertexAIEmbedding code
This commit is contained in:
+5
-5
@@ -46,7 +46,7 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
optional: true
|
optional: true
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,14 +56,14 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
|||||||
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)
|
||||||
|
|
||||||
const authOptions:GoogleAuthOptions = {
|
const authOptions: GoogleAuthOptions = {
|
||||||
keyFile: googleApplicationCredentialFilePath,
|
keyFile: googleApplicationCredentialFilePath
|
||||||
};
|
}
|
||||||
|
|
||||||
if (projectID) authOptions.projectId = projectID
|
if (projectID) authOptions.projectId = projectID
|
||||||
|
|
||||||
const obj: GoogleVertexAIEmbeddingsParams = {
|
const obj: GoogleVertexAIEmbeddingsParams = {
|
||||||
authOptions,
|
authOptions
|
||||||
}
|
}
|
||||||
if (location) obj.location = location
|
if (location) obj.location = location
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user