Tools
Vercel AI SDK 7.0.91 adds retry for provider errors that arrive after streaming has already begun
Released 2026-09-02T20:27Z, [redacted] makes provider errors received after `streamText` response streaming begins recoverable through a new `streamRetries` option. Configuring it enables isolated retry attempts including one bounded callback-directed recovery via `StreamTextOnErrorRetryCallback` when set to `streamRetries: 0`, and recovered results and metadata reflect only the successful attempt. The existing `StreamTextOnErrorCallback` contract and logging-only observer behaviour stay compatible, so this is opt-in for anyone whose long agent streams currently die on a mid-stream 5xx.
Source
↳ Follow the thread