Skip to content

Commit a47a52d

Browse files
authored
Merge pull request #1243 from arturfromtabnine/arturfromtabnine/add-vertex-project-id-check
fix: project id assignment logic [vertex]
2 parents 057fb01 + 8d6c2a1 commit a47a52d

File tree

1 file changed

+1
-1
lines changed
  • src/providers/google-vertex-ai

1 file changed

+1
-1
lines changed

src/providers/google-vertex-ai/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const getProjectRoute = (
1717
vertexServiceAccountJson,
1818
} = providerOptions;
1919
let projectId = inputProjectId;
20-
if (vertexServiceAccountJson) {
20+
if (vertexServiceAccountJson && vertexServiceAccountJson.project_id) {
2121
projectId = vertexServiceAccountJson.project_id;
2222
}
2323

0 commit comments

Comments
 (0)