google.internal.vertex_location

The region the request is routed to: the explicit option, else `GOOGLE_CLOUD_LOCATION` / `GOOGLE_CLOUD_REGION`, else the multi-region `global` endpoint (google-genai's default for the Vertex backend).

Reference version

Signature

function google.internal.vertex_location(
) -> string throws baml.errors.Io | baml.errors.ParseError

The region the request is routed to: the explicit option, else GOOGLE_CLOUD_LOCATION / GOOGLE_CLOUD_REGION, else the multi-region global endpoint (google-genai's default for the Vertex backend).

An explicitly-set empty string is honored, producing a deliberately broken URL, so a misconfigured deployment surfaces instead of silently reaching a different region.

Source:<builtin>/google/ns_internal/vertex.bamlbytes 46825154