openai.internal._chat_send

(internal) Transport + classification for the non-streaming path. This mirrors `ai.wire.send_as_with_wire` but decodes through `baml.json.to`, which honours the `baml.FromJson` override that maps the `function` wire key onto `CcToolCall.fn` — so the LLMCall wire record is built inline here with the same shape `send_as_with_wire` produces.

Reference version

Signature

function openai.internal._chat_send(
request: baml.http.Request,
provider: string,
client_name: string,
capture_wire: bool = …,
audio_mime: string = …,
request_timeout_ms: int | null = …
) -> ai.ModelTurn throws baml.errors.Timeout | ai.errors.Failure

(internal) Transport + classification for the non-streaming path. This mirrors ai.wire.send_as_with_wire but decodes through baml.json.to, which honours the baml.FromJson override that maps the function wire key onto CcToolCall.fn — so the LLMCall wire record is built inline here with the same shape send_as_with_wire produces.

Source:<builtin>/openai/ns_internal/chat.bamlbytes 5183654620