mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
lint fix GoogleAuth and GoogleVertexAIEmbedding code
This commit is contained in:
@@ -22,4 +22,4 @@ class GoogleVertexAuth implements INodeCredential {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: GoogleVertexAuth }
|
||||
module.exports = { credClass: GoogleVertexAuth }
|
||||
|
||||
+5
-5
@@ -46,7 +46,7 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
||||
type: 'string',
|
||||
additionalParams: true,
|
||||
optional: true
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -56,14 +56,14 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
||||
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
||||
const googleApplicationCredentialFilePath = getCredentialParam('googleApplicationCredentialFilePath', credentialData, nodeData)
|
||||
|
||||
const authOptions:GoogleAuthOptions = {
|
||||
keyFile: googleApplicationCredentialFilePath,
|
||||
};
|
||||
const authOptions: GoogleAuthOptions = {
|
||||
keyFile: googleApplicationCredentialFilePath
|
||||
}
|
||||
|
||||
if (projectID) authOptions.projectId = projectID
|
||||
|
||||
const obj: GoogleVertexAIEmbeddingsParams = {
|
||||
authOptions,
|
||||
authOptions
|
||||
}
|
||||
if (location) obj.location = location
|
||||
|
||||
|
||||
Reference in New Issue
Block a user