github vercel/ai @ai-sdk/huggingface@2.0.76

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

  • 0a5d0e7: Fix toolChoice: 'none' by forwarding it to the Hugging Face Responses API and rejecting tool calls before local execution in generateText, streamText, and WorkflowAgent. Streamed tool parts are withheld so client-side tools cannot act on them, and repairToolCall and experimental_refineToolInput are not invoked for rejected tool calls.

  • 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.

  • Updated dependencies [10026d1]

    • @ai-sdk/provider@4.0.32
    • @ai-sdk/openai-compatible@3.0.76
    • @ai-sdk/provider-utils@5.0.66

Don't miss a new ai release

NewReleases is sending notifications on new releases.