From 82f7200f7d8550145859fd1d1a03562b0930a902 Mon Sep 17 00:00:00 2001 From: Pedro Reis <28795057+pedrojreis@users.noreply.github.com> Date: Tue, 9 Jun 2026 19:28:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8D=20fix:=20Prefer=20Imagen-Specific?= =?UTF-8?q?=20Location=20over=20Default=20Google=20Region=20(#13613)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/clients/tools/structured/GeminiImageGen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/clients/tools/structured/GeminiImageGen.js b/api/app/clients/tools/structured/GeminiImageGen.js index 49b9a63e0e..ed8dd5c762 100644 --- a/api/app/clients/tools/structured/GeminiImageGen.js +++ b/api/app/clients/tools/structured/GeminiImageGen.js @@ -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 }, }); }