🌍 fix: Prefer Imagen-Specific Location over Default Google Region (#13613)

This commit is contained in:
Pedro Reis 2026-06-09 19:28:00 +01:00 • committed by GitHub
parent 6c36d8038c
commit 82f7200f7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,7 +119,7 @@ async function initializeGeminiClient(options = {}) {
return new GoogleGenAI({
vertexai: true,
project: serviceKey.project_id,
location: process.env.GOOGLE_LOC || process.env.GOOGLE_CLOUD_LOCATION || 'global',
location: process.env.GOOGLE_CLOUD_LOCATION || process.env.GOOGLE_LOC || 'global',
googleAuthOptions: { credentials: serviceKey },
});
}