releases.sh

Streams resolve faster; early-error handling preserved

@ai-sdk/openai@4.0.25

July 30, 2026AI SDKView original ↗
1 feature1 fixThis release1 featureNew capabilities1 fixBug fixesAI-tallied from the release notes
From the original release noteView original ↗

Patch Changes

  • beaecb3: fix(provider/openai): resolve responses doStream at response.in_progress instead of first output token

    The early-stream-error peek treated response.in_progress as an unknown chunk, so doStream did not resolve until the first output item arrived — delaying stream availability (and downstream TTFB for proxies/gateways) by the model's full time-to-first-token. response.in_progress is now modeled in the chunk schema and marks the request as accepted: the peek keeps watching for error frames for a short grace window (50ms) so quota/rate-limit errors flushed alongside response.in_progress still throw as retryable APICallErrors, while healthy streams become available right after upstream acknowledges the request.

  • b192878: feat: add experimental_toolCaller routing to generateText for code mode

  • Updated dependencies [d8210b6]

  • Updated dependencies [b192878]

    • @ai-sdk/provider-utils@5.0.16

Fetched July 31, 2026

Streams resolve faster; early-error handling preserved… — releases.sh