We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 057fb01 + 8d6c2a1 commit a47a52dCopy full SHA for a47a52d
src/providers/google-vertex-ai/api.ts
@@ -17,7 +17,7 @@ const getProjectRoute = (
17
vertexServiceAccountJson,
18
} = providerOptions;
19
let projectId = inputProjectId;
20
- if (vertexServiceAccountJson) {
+ if (vertexServiceAccountJson && vertexServiceAccountJson.project_id) {
21
projectId = vertexServiceAccountJson.project_id;
22
}
23
0 commit comments