Gen AI Configs
Vertex AI
Configure Onyx to use Vertex AI
There are currently two supported approaches to use Vertex AI with Onyx:
- Use the gcloud CLI to authenticate
- Set up a service account, and use the service account to authenticate
Use the gcloud CLI to authenticate
- Install the gcloud CLI
- Authenticate with the gcloud CLI using
gcloud auth application-default login
on the machine that Onyx is running on. - Set up a
Custom LLM Provider
in the Admin Panel. See the screenshots below for an example of what this should look like. ReplaceYOUR_GCP_PROJECT_ID
with your actual GCP project ID.
- Start using Vertex AI with Onyx!
Use a service account to authenticate
- Go the Service Accounts page in the GCP Console.
- Click
+ Create Service Account
and set one up with a name likeonyx-vertex-ai
. Give it access to theVertex AI Administrator
role. Create!
- Click into the created service account, navigate to the
Keys
tab, then clickAdd Key
. SelectJSON
as the key type, and clickCreate
. This will download a JSON file to your machine.
- Set up a
Custom LLM Provider
in the Admin Panel. See the screenshots below for an example of what this should look like. ReplaceYOUR_SERVICE_ACCOUNT_CREDENTIAL
with the contents of the JSON file you downloaded in step 3.
- Start using Vertex AI with Onyx!