github vercel/ai @ai-sdk/gateway@2.0.160

latest releases: @ai-sdk/zai@3.0.21, @ai-sdk/xai@5.0.12, @ai-sdk/workflow-harness@1.0.132...
4 hours ago

Patch Changes

  • 6dc04c5: feat(anthropic): add Claude Sonnet 5.5 support

    • add the claude-sonnet-5-5 model ID to @ai-sdk/anthropic and @ai-sdk/google-vertex, anthropic.claude-sonnet-5-5 and us.anthropic.claude-sonnet-5-5 to @ai-sdk/amazon-bedrock, and anthropic/claude-sonnet-5.5 to @ai-sdk/gateway
    • add the between_tools thinking type (thinking: { type: 'between_tools' }), the lowest thinking setting on claude-sonnet-5-5; xhigh and max effort are lowered to high with a warning because the API rejects them with between_tools
    • claude-sonnet-5-5 rejects disabled thinking: thinking: { type: 'disabled' } is replaced with between_tools thinking (with a warning), and budget-based thinking is converted to adaptive thinking
    • claude-sonnet-5-5 rejects forced tool use: required and named tool choices fall back to auto, and structuredOutputMode: 'jsonTool' falls back to native structured outputs, each with a warning
  • Updated dependencies [14810cb]

    • @ai-sdk/provider-utils@3.0.40

Don't miss a new ai release

NewReleases is sending notifications on new releases.