openai.internal._request

(internal) The shared request builder: identical body for both paths, plus the `stream: true` flag on the streaming one.

Reference version

Signature

function openai.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.Failure

(internal) The shared request builder: identical body for both paths, plus the stream: true flag on the streaming one.

Source:<builtin>/openai/ns_internal/responses.bamlbytes 2744629358