Skip to contents

Fetch and cache a Google Cloud access token via gcloud

Usage

morie_vertex_access_token(cfg = NULL)

Arguments

cfg

Config list, or NULL to resolve.

Value

Character bearer token.

Examples

if (FALSE) { # nzchar(Sys.getenv("GOOGLE_CLOUD_PROJECT")) || nzchar(Sys.getenv("MORIE_EE_PROJECT"))
# Runs only when a Google Cloud project is configured; Vertex is an
# OPTIONAL fallback -- the default LLM path is local Ollama (see
# morie_siu_panel / morie_llm_* helpers).
tok <- morie_vertex_access_token()
}