diff --git a/app/client/platforms/google.ts b/app/client/platforms/google.ts index 9a8cc7f7662..8c1d29d7ebb 100644 --- a/app/client/platforms/google.ts +++ b/app/client/platforms/google.ts @@ -182,13 +182,13 @@ export class GeminiProApi implements LLMApi { if (!baseUrl) { baseUrl = isApp - ? DEFAULT_API_HOST + - "/api/proxy/google/" + - Google.ChatPath + - `?key=${accessStore.googleApiKey}` + ? DEFAULT_API_HOST + "/api/proxy/google/" + Google.ChatPath : chatPath; } + if (isApp) { + baseUrl += `?key=${accessStore.googleApiKey}`; + } const chatPayload = { method: "POST", body: JSON.stringify(requestPayload),