Skip to content

Commit dd7ead1

Browse files
author
Sannidhya Sah
committed
docs: Update Vertex AI provider auth methods
1 parent abba3f7 commit dd7ead1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/providers/vertex.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Roo Code supports accessing models through Google Cloud Platform's Vertex AI, a
1616
* **Application Default Credentials (ADC):** Roo Code uses Application Default Credentials to authenticate with Vertex AI. The easiest way to set this up is to:
1717
1. Install the Google Cloud CLI: [https://cloud.google.com/sdk/docs/install](https://cloud.google.com/sdk/docs/install)
1818
2. Authenticate using: `gcloud auth application-default login`
19+
* **Service Account Key (Alternative):** Alternatively, you can authenticate using a Google Cloud Service Account key file. You'll need to generate this key in your GCP project. See the [Google Cloud documentation on creating service account keys](https://cloud.google.com/iam/docs/creating-managing-service-account-keys).
1920

2021
## Supported Models
2122

@@ -44,10 +45,14 @@ Refer to the [Google Cloud documentation on Vertex AI Models](https://cloud.goog
4445

4546
1. **Open Roo Code Settings:** Click the gear icon (<Codicon name="gear" />) in the Roo Code panel.
4647
2. **Select Provider:** Choose "GCP Vertex AI" from the "API Provider" dropdown.
47-
3. **Enter Project ID:** Enter your Google Cloud Project ID.
48-
4. **Select Region:** Choose the region where your Vertex AI resources are located (e.g., `us-east5`).
49-
5. **Select Model:** Choose your desired model from the "Model" dropdown.
50-
48+
3. **Configure Authentication:**
49+
* **If using Application Default Credentials (ADC):** No further action is needed here. ADC will be used automatically if configured correctly (see Prerequisites).
50+
* **If *not* using ADC (Service Account Key):**
51+
* **Option A: Paste JSON Content:** Paste the entire content of your Service Account JSON key file into the **Google Cloud Credentials** field.
52+
* **Option B: Provide File Path:** Enter the absolute path to your downloaded Service Account JSON key file in the **Google Cloud Key File Path** field.
53+
4. **Enter Project ID:** Enter your Google Cloud Project ID.
54+
5. **Select Region:** Choose the region where your Vertex AI resources are located (e.g., `us-east5`).
55+
6. **Select Model:** Choose your desired model from the "Model" dropdown.
5156
## Tips and Notes
5257

5358
* **Permissions:** Ensure your Google Cloud account has the necessary permissions to access Vertex AI and the specific models you want to use.

0 commit comments

Comments
 (0)