mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
🌐 fix: Support global
location for Google VertexAI (#7768)
* fix: Check if loc is 'global' and set the endpoint prefix accordingly * fix: ESLint error --------- Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
4419e2c294
commit
5eb0703f78
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ const BaseClient = require('./BaseClient');
|
|||
|
||||
const loc = process.env.GOOGLE_LOC || 'us-central1';
|
||||
const publisher = 'google';
|
||||
const endpointPrefix = `${loc}-aiplatform.googleapis.com`;
|
||||
const endpointPrefix =
|
||||
loc === 'global' ? 'aiplatform.googleapis.com' : `${loc}-aiplatform.googleapis.com`;
|
||||
|
||||
const settings = endpointSettings[EModelEndpoint.google];
|
||||
const EXCLUDED_GENAI_MODELS = /gemini-(?:1\.0|1-0|pro)/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue