mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
docs: tweak google vertex
This commit is contained in:
@@ -421,14 +421,14 @@ To use Google Vertex AI with OpenCode:
|
||||
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_REGION` (optional): The region for Vertex AI (defaults to us-east5)
|
||||
- One of these authentication options:
|
||||
- `GOOGLE_VERTEX_REGION` (optional): The region for Vertex AI (defaults to `us-east5`)
|
||||
- Authentication (choose one):
|
||||
- `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
|
||||
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_VERTEX_PROJECT=your-project-id opencode
|
||||
|
||||
Reference in New Issue
Block a user