google.VertexClient$stream
Gemini on Vertex AI: the same models as `google.GeminiClient`, reached through a Google Cloud project with Google Cloud credentials.
Reference version
Signature
class google.VertexClient$streamGemini on Vertex AI: the same models as google.GeminiClient, reached
through a Google Cloud project with Google Cloud credentials.
Three ways to authenticate, in the order the client tries them:
credentials_json— an inline credential document (service account, authorized user, workload identity federation, impersonated service account);credentials_file— a path to one, plus theGOOGLE_APPLICATION_CREDENTIALS_CONTENTenv var holding a document inline;- nothing — Application Default Credentials
(
GOOGLE_APPLICATION_CREDENTIALS, the well-known ADC file, the gcloud config file, the GCE metadata server).
api_key selects Vertex AI express mode instead: the key rides the URL
as ?key=…, no credentials are read, and the request goes to the
project-less global endpoint unless a project is configured.
Source:<builtin>/google/vertex.bamlbytes 0–0
Fields
model
string | nullproject_id
ai.Credential$stream | nulllocation
string | nullcredentials_json
string | nullcredentials_file
string | nullapi_key
ai.Credential$stream | nullbase_url
ai.Credential$stream | nullrequest_timeout_ms
int | nulltime_to_first_token_timeout_ms
int | nullrequest_body
baml.json.json$stream | nullheaders
map<string, string> | nullquery_params
map<string, string> | nulltemperature
float | nullmax_output_tokens
int | nulltop_p
float | nulltop_k
int | nullstop_sequences
string[] | nullresponse_modalities
string[] | nullsafety_settings
google.SafetySetting$stream[] | nullcapture_wire
bool | null