Use Vertex AI’s Python SDK to integrate with Helicone to log your Vertex AI usage.
Set API keys as environment variables
Install required packages
Import libraries
Initialize Vertex AI with Helicone
Initialize the model and generate content
Install additional required packages
Create a log builder example
Create the HeliconeManualLogger helper
helicone_helpers.py
with the following content: