openai.internal.chat_build_request
The typed body for one turn. Separate from the HTTP framing so tests (and a future Azure/Vertex-style reuse) can assert on the request object itself.
Reference version
Signature
function openai.internal.chat_build_request(
compat: openai.internal.ChatCompat,
params: openai.internal.ChatParams,
input: ai.ModelTurnInput,
stream: bool,
preview: bool = …
) -> openai.internal.ChatRequest throws baml.errors.InvalidArgument | baml.errors.Io | baml.errors.Timeout | baml.json.SerializationError | ai.errors.InvalidRequest | ai.errors.NetworkFailure | ai.errors.PreviewUnsupported | ai.errors.PromptRenderError
The typed body for one turn. Separate from the HTTP framing so tests (and a future Azure/Vertex-style reuse) can assert on the request object itself.
Source:<builtin>/openai/ns_internal/chat.bamlbytes 40699–43444