openai.internal.invoke_stream

The streaming entry point: the same request as `invoke` with `stream: true`, wrapped in an ai.TurnStream over the SSE connection.

Reference version

Signature

function openai.internal.invoke_stream(
input: ai.ModelTurnInput
) -> ai.stream.TurnStream throws baml.errors.InvalidArgument | baml.errors.Io | baml.errors.ParseError | baml.errors.Timeout | baml.json.SerializationError | ai.errors.Failure

The streaming entry point: the same request as invoke with stream: true, wrapped in an ai.TurnStream over the SSE connection.

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