`stream()`'s runner assigned `saw_output` without declaring it nonlocal,
so the name was local to the runner. A provider that returned
`finish_reason="error"` after streaming deltas crashed the runner with
UnboundLocalError, and one that returned it before any delta had its
operator message ("Error calling LLM: ...") enqueued as the model's
answer with the error swallowed.
Declare the nonlocal, and skip the post-stream content synthesis for
error-shaped responses so the existing guard raises them as LLMAPIError.
Text already delivered is still kept, as before.