Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vercel/ai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @ai-sdk/react@2.0.140
Choose a base ref
...
head repository: vercel/ai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @ai-sdk/react@2.0.141
Choose a head ref
  • 7 commits
  • 47 files changed
  • 6 contributors

Commits on Feb 24, 2026

  1. Backport: Add automatic caching for Anthropic (#12743) (#12833)

    ## Summary
    
    Backport of #12743 to `release-v5.0`.
    
    - Passes the `cacheControl` provider option as a top-level
    `cache_control` field in the Anthropic API request body to support
    [automatic
    caching](https://platform.claude.com/docs/en/docs/build-with-claude/prompt-caching#automatic-caching)
    - Includes tests for both `{ type: 'ephemeral' }` and `{ type:
    'ephemeral', ttl: '1h' }`
    - Includes patch changeset for `@ai-sdk/anthropic`
    
    ---------
    
    Co-authored-by: Jade River Stokes <jaderiverstokes@gmail.com>
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    3 people authored Feb 24, 2026
    Configuration menu
    Copy the full SHA
    e1b08a6 View commit details
    Browse the repository at this point in the history
  2. Version Packages (#12837)

    This PR was opened by the [Changesets
    release](https://github.com/changesets/action) GitHub action. When
    you're ready to do a release, you can merge this and the packages will
    be published to npm automatically. If you're not ready to do a release
    yet, that's fine, whenever you add more changesets to release-v5.0, this
    PR will be updated.
    
    
    # Releases
    ## @ai-sdk/amazon-bedrock@3.0.84
    
    ### Patch Changes
    
    -   Updated dependencies [e1b08a6]
        -   @ai-sdk/anthropic@2.0.67
    
    ## @ai-sdk/anthropic@2.0.67
    
    ### Patch Changes
    
    - e1b08a6: Pass `cacheControl` provider option as top-level
    `cache_control` in Anthropic API request body to support automatic
    caching.
    
    ## @ai-sdk/google-vertex@3.0.108
    
    ### Patch Changes
    
    -   Updated dependencies [e1b08a6]
        -   @ai-sdk/anthropic@2.0.67
    
    Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
    vercel-ai-sdk[bot] authored Feb 24, 2026
    Configuration menu
    Copy the full SHA
    92f9ba1 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2026

  1. Backport: feat(togetherai): use TOGETHER_API_KEY, deprecate TOGETHER_…

    …AI_API_KEY (#12861)
    
    This is an automated backport of #12857 to the release-v5.0 branch
    
    ---------
    
    Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    3 people authored Feb 26, 2026
    Configuration menu
    Copy the full SHA
    a0e97f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f8a26e View commit details
    Browse the repository at this point in the history
  3. Version Packages (#12866)

    This PR was opened by the [Changesets
    release](https://github.com/changesets/action) GitHub action. When
    you're ready to do a release, you can merge this and the packages will
    be published to npm automatically. If you're not ready to do a release
    yet, that's fine, whenever you add more changesets to release-v5.0, this
    PR will be updated.
    
    
    # Releases
    ## @ai-sdk/togetherai@1.0.36
    
    ### Patch Changes
    
    - a0e97f0: Use `TOGETHER_API_KEY` as the default environment variable
    for the Together.ai provider, matching Together.ai's own convention.
    `TOGETHER_AI_API_KEY` is still supported but deprecated and will emit a
    console warning.
    
    Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
    vercel-ai-sdk[bot] authored Feb 26, 2026
    Configuration menu
    Copy the full SHA
    bfb22fc View commit details
    Browse the repository at this point in the history
  4. Backport: feat (provider/gateway): pass through project id when avail…

    …able for o11y (#12852)
    
    This is an automated backport of #12835 to the release-v5.0 branch. FYI
    @shaper
    
    Co-authored-by: Walter Korman <shaper@vercel.com>
    vercel-ai-sdk[bot] and shaper authored Feb 26, 2026
    Configuration menu
    Copy the full SHA
    9212b2d View commit details
    Browse the repository at this point in the history
  5. Version Packages (#12873)

    This PR was opened by the [Changesets
    release](https://github.com/changesets/action) GitHub action. When
    you're ready to do a release, you can merge this and the packages will
    be published to npm automatically. If you're not ready to do a release
    yet, that's fine, whenever you add more changesets to release-v5.0, this
    PR will be updated.
    
    
    # Releases
    ## ai@5.0.139
    
    ### Patch Changes
    
    -   Updated dependencies [9212b2d]
        -   @ai-sdk/gateway@2.0.45
    
    ## @ai-sdk/angular@1.0.139
    
    ### Patch Changes
    
    -   ai@5.0.139
    
    ## @ai-sdk/gateway@2.0.45
    
    ### Patch Changes
    
    - 9212b2d: feat (provider/gateway): pass through project id when
    available for o11y
    
    ## @ai-sdk/langchain@1.0.139
    
    ### Patch Changes
    
    -   ai@5.0.139
    
    ## @ai-sdk/llamaindex@1.0.139
    
    ### Patch Changes
    
    -   ai@5.0.139
    
    ## @ai-sdk/react@2.0.141
    
    ### Patch Changes
    
    -   ai@5.0.139
    
    ## @ai-sdk/rsc@1.0.141
    
    ### Patch Changes
    
    -   ai@5.0.139
    
    ## @ai-sdk/svelte@3.0.139
    
    ### Patch Changes
    
    -   ai@5.0.139
    
    ## @ai-sdk/vue@2.0.139
    
    ### Patch Changes
    
    -   ai@5.0.139
    
    Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
    vercel-ai-sdk[bot] authored Feb 26, 2026
    Configuration menu
    Copy the full SHA
    7858599 View commit details
    Browse the repository at this point in the history
Loading