ReqLLM.Providers.GoogleVertex.Auth (ReqLLM v1.0.0)

View Source

Google Cloud OAuth2 authentication for Vertex AI.

Implements service account JWT-based authentication to obtain access tokens.

Summary

Functions

Get an OAuth2 access token from a service account JSON file.

Functions

get_access_token(service_account_json_path)

Get an OAuth2 access token from a service account JSON file.

Generates a fresh token on each call. Tokens are valid for 1 hour.

Returns {:ok, access_token} or {:error, reason}.