github vercel/ai @ai-sdk/anthropic@4.0.86

latest releases: @ai-sdk/zai@3.0.39, @ai-sdk/xai@5.0.29, @ai-sdk/workflow-harness@1.0.161...
3 hours ago

Patch Changes

  • 43ad966: Report interrupted when a stream ends cleanly without its provider completion signal, preserving partial output without emitting an error solely for the interruption.

    This applies to OpenAI (Chat, Responses, and Completions), Anthropic, Google (Generate Content and Interactions), Alibaba, Amazon Bedrock Converse, Cohere, DeepSeek, Groq, Hugging Face Responses, Mistral Chat, Moonshot AI, Open Responses, Perplexity, and xAI Responses. It also covers cutoffs in later Anthropic messages and Google automatic continuations.

    Compatibility notice: These streams previously fell back to other or omitted the finish part. Applications must now handle interrupted in finish-reason switches, mappings, and custom validation. Check finishReason === 'interrupted' to detect incomplete responses; interruption alone does not trigger error handling.

    Explicit unknown completion reasons still map to other. Actual provider, parsing, and transport errors retain their error paths; affected error paths that previously left the finish reason as other now report error. OpenAI-compatible remains unchanged.

  • aac6026: fix(anthropic): preserve empty-stream rejection for interrupted responses

  • Updated dependencies [10026d1]

    • @ai-sdk/provider@4.0.32
    • @ai-sdk/provider-utils@5.0.66

Don't miss a new ai release

NewReleases is sending notifications on new releases.