Skip to content

Commit 56fc835

Browse files
authored
Merge pull request #1171 from Portkey-AI/feat/vertex-global-region-support
feat: add support for vertex-ai global region endpoints
2 parents 6795e96 + 1de302d commit 56fc835

File tree

1 file changed

+3
-0
lines changed
  • src/providers/google-vertex-ai

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export const GoogleApiConfig: ProviderAPIConfig = {
5757
return `https://storage.googleapis.com`;
5858
}
5959

60+
if (vertexRegion === 'global') {
61+
return `https://aiplatform.googleapis.com`;
62+
}
6063
return `https://${vertexRegion}-aiplatform.googleapis.com`;
6164
},
6265
headers: async ({ c, providerOptions }) => {

0 commit comments

Comments
 (0)