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@6.0.101
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@6.0.102
Choose a head ref
  • 2 commits
  • 53 files changed
  • 2 contributors

Commits on Feb 26, 2026

  1. feat(provider/google): add support for gemini-3.1-flash-image-preview (

    …#12883)
    
    ## Background
    
    Google released `gemini-3.1-flash-image-preview`, a new Gemini image
    model:
    
    - https://blog.google/innovation-and-ai/technology/ai/nano-banana-2/
    -
    https://ai.google.dev/gemini-api/docs/pricing#gemini-3.1-flash-image-preview
    
    ## Summary
    
    Adds `gemini-3.1-flash-image-preview` to the model ID type unions in
    google, google-vertex, and gateway packages (both language model and
    image model ID lists). Updates documentation capability tables for both
    providers. Adds two `ai-functions` examples: one using `generateImage`,
    one using `generateText` with multimodal output.
    
    ## Manual Verification
    
    Model ID additions are type-only changes. Examples can be verified by
    running:
    
    ```bash
    aif examples/ai-functions/src/generate-image/google/gemini-3-1-flash-image.ts
    aif examples/ai-functions/src/generate-text/google/gemini-3-1-flash-image-output.ts
    ```
    
    ## Checklist
    
    - [ ] Tests have been added / updated (for bug fixes / features)
    - [x] Documentation has been added / updated (for bug fixes / features)
    - [x] A _patch_ changeset for relevant packages has been added (for bug
    fixes / features - run `pnpm changeset` in the project root)
    - [x] I have reviewed this pull request (self-review)
    
    ## Future Work
    
    N/A
    
    ## Related Issues
    
    Fixes #12882
    felixarntz authored Feb 26, 2026
    Configuration menu
    Copy the full SHA
    45f0a7f View commit details
    Browse the repository at this point in the history
  2. Version Packages (#12886)

    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 main, this PR will
    be updated.
    
    
    # Releases
    ## ai@6.0.102
    
    ### Patch Changes
    
    -   Updated dependencies [45f0a7f]
        -   @ai-sdk/gateway@3.0.56
    
    ## @ai-sdk/angular@2.0.103
    
    ### Patch Changes
    
    -   ai@6.0.102
    
    ## @ai-sdk/gateway@3.0.56
    
    ### Patch Changes
    
    - 45f0a7f: feat(provider/google): add support for
    gemini-3.1-flash-image-preview
    
    ## @ai-sdk/google@3.0.32
    
    ### Patch Changes
    
    - 45f0a7f: feat(provider/google): add support for
    gemini-3.1-flash-image-preview
    
    ## @ai-sdk/google-vertex@4.0.64
    
    ### Patch Changes
    
    - 45f0a7f: feat(provider/google): add support for
    gemini-3.1-flash-image-preview
    -   Updated dependencies [45f0a7f]
        -   @ai-sdk/google@3.0.32
    
    ## @ai-sdk/langchain@2.0.108
    
    ### Patch Changes
    
    -   ai@6.0.102
    
    ## @ai-sdk/llamaindex@2.0.102
    
    ### Patch Changes
    
    -   ai@6.0.102
    
    ## @ai-sdk/react@3.0.104
    
    ### Patch Changes
    
    -   ai@6.0.102
    
    ## @ai-sdk/rsc@2.0.102
    
    ### Patch Changes
    
    -   ai@6.0.102
    
    ## @ai-sdk/svelte@4.0.102
    
    ### Patch Changes
    
    -   ai@6.0.102
    
    ## @ai-sdk/vue@3.0.102
    
    ### Patch Changes
    
    -   ai@6.0.102
    
    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
    1d482f8 View commit details
    Browse the repository at this point in the history
Loading