Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 2.56 KB

internchatstreamerror.mdx

File metadata and controls

14 lines (10 loc) · 2.56 KB
title InternChatStreamError

A failure after the response headers were sent. The chunk that carries it has finish_reason: "error", then the final empty-choices chunk and [DONE] follow. Reasons here are attachment_failed, busy, client_closed_request, interaction_not_pending, interaction_unknown, intern_unreachable, run_ended, stream_severed, timeout or turn_failed. run_ended reports an ending the intern confirmed, such as a cancellation or a deadline, while stream_severed reports a connection lost without that confirmation.

Fields

Field Type Required Description Example
code int ✔️ The HTTP status this failure would have had before the stream opened.
message str ✔️ N/A
metadata components.InternChatErrorMetadata ✔️ Machine-readable detail for the failure. {
"reason": "interaction_not_pending",
"retryable": false
}