mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 05:01:10 +03:00
lint fix GoogleAuth and GoogleVertexAIEmbedding code
This commit is contained in:
+4
-4
@@ -46,7 +46,7 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
optional: true
|
optional: true
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,13 +57,13 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
|||||||
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