openai.internal._sse_failure

(internal) A failure opening the SSE connection. `baml.http.fetch_sse` reports a non-2xx status as an Io error whose message carries the status and body, so the status is recovered and classified exactly like ai.wire.send_as does — a 401 or 429 on the streaming path must NOT be reported as a retry-safe transport failure.

Reference version

Signature

function openai.internal._sse_failure(error: unknown) -> ai.errors.Failure

(internal) A failure opening the SSE connection. baml.http.fetch_sse reports a non-2xx status as an Io error whose message carries the status and body, so the status is recovered and classified exactly like ai.wire.send_as does — a 401 or 429 on the streaming path must NOT be reported as a retry-safe transport failure.

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