docs: tweak google vertex

This commit is contained in:
Aiden Cline
2025-10-23 11:49:53 -05:00
parent e5df43f9b7
commit d69e8e5528

View File

@@ -421,14 +421,14 @@ To use Google Vertex AI with OpenCode:
You need to have a Google Cloud project with Vertex AI API enabled. You need to have a Google Cloud project with Vertex AI API enabled.
::: :::
1. You'll need to set the following environment variables: 1. Set the required environment variables:
- `GOOGLE_VERTEX_PROJECT`: Your Google Cloud project ID - `GOOGLE_VERTEX_PROJECT`: Your Google Cloud project ID
- `GOOGLE_VERTEX_REGION` (optional): The region for Vertex AI (defaults to us-east5) - `GOOGLE_VERTEX_REGION` (optional): The region for Vertex AI (defaults to `us-east5`)
- One of these authentication options: - Authentication (choose one):
- `GOOGLE_APPLICATION_CREDENTIALS`: Path to your service account JSON key file - `GOOGLE_APPLICATION_CREDENTIALS`: Path to your service account JSON key file
- Or authenticate using gcloud CLI with `gcloud auth application-default login` - Authenticate using gcloud CLI: `gcloud auth application-default login`
Once you have these, set them while running opencode. Set them while running opencode.
```bash ```bash
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_VERTEX_PROJECT=your-project-id opencode GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_VERTEX_PROJECT=your-project-id opencode