google.internal._request

(internal) The shared request builder: identical body for both paths; streaming swaps the RPC verb for `:streamGenerateContent?alt=sse`.

Reference version

Signature

function google.internal._request(
input: ai.ModelTurnInput,
stream: bool,
preview: bool = …
) -> baml.http.Request throws baml.errors.InvalidArgument | baml.errors.Io | baml.errors.ParseError | baml.errors.Timeout | baml.json.SerializationError | ai.errors.InvalidRequest | ai.errors.NetworkFailure | ai.errors.PreviewUnsupported | ai.errors.PromptRenderError

(internal) The shared request builder: identical body for both paths; streaming swaps the RPC verb for :streamGenerateContent?alt=sse.

Source:<builtin>/google/ns_internal/gemini.bamlbytes 4157142738