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.
global
1 parent 4419e2c commit 5eb0703Copy full SHA for 5eb0703
api/app/clients/GoogleClient.js
@@ -34,7 +34,8 @@ const BaseClient = require('./BaseClient');
34
35
const loc = process.env.GOOGLE_LOC || 'us-central1';
36
const publisher = 'google';
37
-const endpointPrefix = `${loc}-aiplatform.googleapis.com`;
+const endpointPrefix =
38
+ loc === 'global' ? 'aiplatform.googleapis.com' : `${loc}-aiplatform.googleapis.com`;
39
40
const settings = endpointSettings[EModelEndpoint.google];
41
const EXCLUDED_GENAI_MODELS = /gemini-(?:1\.0|1-0|pro)/;
0 commit comments