From 86dd2fdf163377c8151ce36e05214ba3cce4c262 Mon Sep 17 00:00:00 2001 From: Dwi Aji Kurniawan Date: Wed, 15 Oct 2025 11:51:29 +0700 Subject: [PATCH] Allow overriding Google project using env var GOOGLE_CLOUD_PROJECT --- pages/docs/configuration/pre_configured_ai/google.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/docs/configuration/pre_configured_ai/google.mdx b/pages/docs/configuration/pre_configured_ai/google.mdx index 141caaccf..e821b6c82 100644 --- a/pages/docs/configuration/pre_configured_ai/google.mdx +++ b/pages/docs/configuration/pre_configured_ai/google.mdx @@ -116,6 +116,12 @@ GOOGLE_SERVICE_KEY_FILE=eyJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsICJwcm9qZWN0X2lkIjog This is particularly useful for features that require Vertex AI authentication, such as OCR capabilities. +By default, the Vertex AI will use `project_id` in the service account JSON key as the Google Cloud project. To override this behavior, you can set `GOOGLE_CLOUD_PROJECT` environment variable. + +```bash filename=".env" +GOOGLE_CLOUD_PROJECT=your-google-project +``` + Since fetching the models list isn't yet supported, you should set the models you want to use in the .env file. For your convenience, these are the latest models as of 5/18/24 that can be used with the Generative Language API: