Expand description
2026-09-26: Why a streamed chat request failed, as data a caller can classify.
Owner: bench (HTTP client). Invariants:
Displayprintsmessageand nothing else.- A
bodyset throughwith_bodyholds at mostBODY_EXCERPTbytes and is cut on a char boundary.
Structs§
Enums§
Constants§
- BODY_
EXCERPT - 2026-09-25: The cap on the response bytes a failure carries.
Functions§
- classify
- 2026-09-25: The failure an error from
chat_streamdescribes. A typed failure anywhere in the chain wins; an I/O error isTransport; anything else isOther. The message is always the whole chain, as{:#}prints it. - excerpt
- 2026-09-25: At most
BODY_EXCERPTbytes ofbytes, lossily decoded, trimmed, and never split inside a character. - status_
kind - 2026-09-25: The code in a status line such as
HTTP/1.1 503 Service Unavailable, orMalformedwhen it has none.