Handle these cases
- First-token delay
- Client cancellation
- Partial text
- Partial tool arguments
- Network interruption
- Final usage and finish reason
Check model support
Use streaming only when the live catalog marks the selected model as supporting it. Keep a non-streaming fallback for diagnostics.
Common questions
Does every model support streaming?
No. Check the capability flag in the live catalog.
Should I save partial output?
That depends on the product. For auditable workflows, distinguish incomplete output from a completed model response.