google.GeminiClient$stream

The Gemini Developer API client (`generativelanguage.googleapis.com`).

Reference version

Signature

class google.GeminiClient$stream

The Gemini Developer API client (generativelanguage.googleapis.com).

This client always talks to the Developer API. There is no environment switch that re-points it at Vertex AI — the GOOGLE_GENAI_USE_ENTERPRISE / GOOGLE_GENAI_USE_VERTEXAI flags of the google-genai SDK are deliberately NOT honored here, because a credential-bearing client that changes endpoint, auth scheme and billing account behind an ambient env var is a footgun. Use the enterprise backend by naming it: google.VertexClient.new(...), or the "vertex/<model>" client shorthand.

Source:<builtin>/google/gemini.bamlbytes 0–0

Fields

model

string | null

api_key

ai.Credential$stream | null

base_url

ai.Credential$stream | null

request_body

baml.json.json$stream | null

headers

map<string, string> | null

query_params

map<string, string> | null

temperature

float | null

max_output_tokens

int | null

top_p

float | null

top_k

int | null

stop_sequences

string[] | null

response_modalities

string[] | null

capture_wire

bool | null