aws.internal._stream_open_failure

(internal) `send_sse` fails a non-2xx status itself ("SSE request failed with status 403: …"). Route the status through the classifier the non-streaming path uses, so a 4xx is never a retry-safe NetworkFailure.

Reference version

Signature

function aws.internal._stream_open_failure(
error: baml.errors.Io | baml.errors.Timeout
) -> never throws baml.errors.Timeout | ai.errors.Failure

(internal) send_sse fails a non-2xx status itself ("SSE request failed with status 403: …"). Route the status through the classifier the non-streaming path uses, so a 4xx is never a retry-safe NetworkFailure.

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 69333–70559