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

latest releases: @ai-sdk/xai@2.0.50, @ai-sdk/xai@2.0.49, @ai-sdk/vue@2.0.119...
5 days ago

Patch Changes

  • 2231e84: fix(anthropic): implement temperature/topP mutual exclusivity

    Resolves the Anthropic API breaking change where sampling parameters must use only temperature OR top_p, not both. When both parameters are provided:

    • Temperature takes priority and topP is ignored
    • A warning is added to inform users: "topP is not supported when temperature is set. topP is ignored."
    • The validation only runs when thinking mode is not enabled (thinking mode has its own parameter validation)

    See Anthropic migration guide: https://platform.claude.com/docs/en/about-claude/models/migrating-to-claude-4

Don't miss a new ai release

NewReleases is sending notifications on new releases.