Test AI SDK behavior with streaming and ordinary replies
Exercise streamed and non-streamed modes separately. They can use different parser paths, timeouts and ways of reporting usage.
Example
The same request succeeds as a standard response but the streaming client reads only the first event.
What to do
- Run one small synthetic call in each supported mode.
- Compare response type, completion state and usage recording.
- Test failure and cancellation for the mode your users depend on most.
How to verify
Both supported modes produce the expected result and the client records their outcomes correctly.
Limits
Separate endpoints or model features may support only one mode. Record your tested path.