A starter guide and framework to working with Vertex in Node
git clone git@github.com:guyellis/vertex-starter.git
cd vertex-starter
npm ci
- Go to the GCP Console and login.
- Create a new Project.
- In
lib/vertex.ts
setPROJECT_ID
to the name of this project.
- In
- Enable the
Vertex AI API
for that Project. - Install the gcloud CLI
Edit the lib/prompt.txt
file and provide the prompt you want to send to Vertex.
From the root of the project run:
ts-node lib/vertex.ts