Vertex AI offers everything you need to build and use generative AI—from AI solutions, to Search and Conversation, to 100+ foundation models, to a unified AI platform.
These samples show how to use the Google Vertex AI API.
-
Enable APIs - Enable the Vertex AI API and create a new project or select an existing project.
-
Install and Initialize Cloud SDK Follow instructions from the available quickstarts
-
Clone the repo and cd into this directory
git clone https://github.com/googleapis/google-cloud-ruby.git $ cd google-cloud-ruby/google-cloud-ai_platform -
Install Dependencies via Bundler.
$ bundle install -
Set Environment Variables
$ export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID" -
Run samples
bundle exec rake test
- See CONTRIBUTING.md
- See LICENSE