github vercel/ai @ai-sdk/google@2.0.0

latest releases: @ai-sdk/react@2.0.34, @ai-sdk/svelte@3.0.34, @ai-sdk/gateway@1.0.19...
one month ago

Major Changes

Patch Changes

  • 78e7fa9: Add code execution provider defined tool

  • f916255: feat (provider/google): add new gemini models

  • 19a4336: Expose raw usageMetadata returned from Google Generative AI in providerMetadata

  • 8af9e03: Added Image Models to the Google Provider for Imagen 3 Support

  • 1a635b5: update supportedUrls to only support native URL

  • 888b750: feat(providers/google): Add taskType support for Text Embedding Models

  • 3259565: feat (providers/google): add thinking config to provider options

  • e2aceaf: feat: add raw chunk support

  • eb173f1: chore (providers): remove model shorthand deprecation warnings

  • 6a16dcf: embed() now uses the single embeddings endpoint
    No code updates are needed.

    This is to make sure that users are not ratelimited when using the batch endpoint, since many models have different limits for batch and single embeddings.

    Eg: Google has a limit of 150 RPM for batch requests, and 1500 RPM for single requests.

    Before, AI SDK would always use the batch endpoint, even for embed() calls, which led to ratelimits.

    This does not have any breaking functionality and is fully tested :)
    if (values.length > 1) {
    const batchResult = await this.doEmbedBatch({
    values,
    options,
    });
    return batchResult;
    }

  • 26735b5: chore(embedding-model): add v2 interface

  • 5cf30ea: fix (provider/google): allow "OFF" for Google HarmBlockThreshold

  • 443d8ec: feat(embedding-model-v2): add response body field

  • c68931f: Support tool schemas that allow additional properties (e.g z.record(z.string()))

  • 66962ed: fix(packages): export node10 compatible types

  • a313780: fix: omit system message for gemma models

  • fd98925: chore(providers/google): update embedding model to use providerOptions

  • cb787ac: fix: remove non-functional models

  • 7378473: chore(providers/google): switch to providerOptions

  • f07a6d4: fix(providers/google): accept nullish in safetyRatings

  • 75f03b1: Add Gemini 2.5 Flash Lite GA

  • 779d916: feat: add provider option schemas for vertex imagegen and google genai

  • 581a9be: fix (provider/google): prevent error when thinking signature is used

  • 2e06f14: feat (provider/google): Change to provider defined tools

    • Change the google search tool to be a provider defined tool
    • Added new URL context tool as a provider defined tool
  • 8e6b69d: feat(providers/google): Add support for Gemini 2.5 Pro and Gemini 2.5 Flash (now stable)

  • 42fcd32: feat(google): automatically handle system instructions for Gemma models

  • d1a034f: feature: using Zod 4 for internal stuff

  • fd65bc6: chore(embedding-model-v2): rename rawResponse to response

  • 878bf45: removes (unsupported) additionalProperties from the Schema sent in the request payloads to Google APIs

  • 0f05690: Add gemini-embedding-001 model, add embedding provider options type export

  • 7badba2: fix(google): grounding streaming sources

  • 205077b: fix: improve Zod compatibility

  • f10304b: feat(tool-calling): don't require the user to have to pass parameters

  • Updated dependencies [a571d6e]

  • Updated dependencies [742b7be]

  • Updated dependencies [e7fcc86]

  • Updated dependencies [7cddb72]

  • Updated dependencies [ccce59b]

  • Updated dependencies [e2b9e4b]

  • Updated dependencies [95857aa]

  • Updated dependencies [45c1ea2]

  • Updated dependencies [6f6bb89]

  • Updated dependencies [060370c]

  • Updated dependencies [dc714f3]

  • Updated dependencies [b5da06a]

  • Updated dependencies [d1a1aa1]

  • Updated dependencies [63f9e9b]

  • Updated dependencies [5d142ab]

  • Updated dependencies [d5f588f]

  • Updated dependencies [e025824]

  • Updated dependencies [0571b98]

  • Updated dependencies [b6b43c7]

  • Updated dependencies [4fef487]

  • Updated dependencies [48d257a]

  • Updated dependencies [0c0c0b3]

  • Updated dependencies [0d2c085]

  • Updated dependencies [40acf9b]

  • Updated dependencies [9222aeb]

  • Updated dependencies [e2aceaf]

  • Updated dependencies [411e483]

  • Updated dependencies [8ba77a7]

  • Updated dependencies [7b3ae3f]

  • Updated dependencies [a166433]

  • Updated dependencies [26735b5]

  • Updated dependencies [443d8ec]

  • Updated dependencies [a8c8bd5]

  • Updated dependencies [abf9a79]

  • Updated dependencies [14c9410]

  • Updated dependencies [e86be6f]

  • Updated dependencies [9bf7291]

  • Updated dependencies [2e13791]

  • Updated dependencies [9f95b35]

  • Updated dependencies [66962ed]

  • Updated dependencies [0d06df6]

  • Updated dependencies [472524a]

  • Updated dependencies [dd3ff01]

  • Updated dependencies [d9c98f4]

  • Updated dependencies [05d2819]

  • Updated dependencies [9301f86]

  • Updated dependencies [0a87932]

  • Updated dependencies [c4a2fec]

  • Updated dependencies [957b739]

  • Updated dependencies [79457bd]

  • Updated dependencies [a3f768e]

  • Updated dependencies [7435eb5]

  • Updated dependencies [8aa9e20]

  • Updated dependencies [4617fab]

  • Updated dependencies [ac34802]

  • Updated dependencies [0054544]

  • Updated dependencies [cb68df0]

  • Updated dependencies [ad80501]

  • Updated dependencies [68ecf2f]

  • Updated dependencies [9e9c809]

  • Updated dependencies [32831c6]

  • Updated dependencies [6dc848c]

  • Updated dependencies [6b98118]

  • Updated dependencies [d0f9495]

  • Updated dependencies [63d791d]

  • Updated dependencies [87b828f]

  • Updated dependencies [3f2f00c]

  • Updated dependencies [bfdca8d]

  • Updated dependencies [0ff02bb]

  • Updated dependencies [7979f7f]

  • Updated dependencies [39a4fab]

  • Updated dependencies [44f4aba]

  • Updated dependencies [9bd5ab5]

  • Updated dependencies [57edfcb]

  • Updated dependencies [faf8446]

  • Updated dependencies [7ea4132]

  • Updated dependencies [d1a034f]

  • Updated dependencies [5c56081]

  • Updated dependencies [fd65bc6]

  • Updated dependencies [023ba40]

  • Updated dependencies [ea7a7c9]

  • Updated dependencies [26535e0]

  • Updated dependencies [e030615]

  • Updated dependencies [5e57fae]

  • Updated dependencies [393138b]

  • Updated dependencies [c57e248]

  • Updated dependencies [88a8ee5]

  • Updated dependencies [41fa418]

  • Updated dependencies [205077b]

  • Updated dependencies [71f938d]

  • Updated dependencies [3795467]

  • Updated dependencies [28a5ed5]

  • Updated dependencies [7182d14]

  • Updated dependencies [c1e6647]

  • Updated dependencies [1766ede]

  • Updated dependencies [811dff3]

  • Updated dependencies [f10304b]

  • Updated dependencies [dd5fd43]

  • Updated dependencies [33f4a6a]

  • Updated dependencies [383cbfa]

  • Updated dependencies [27deb4d]

  • Updated dependencies [c4df419]

    • @ai-sdk/provider-utils@3.0.0
    • @ai-sdk/provider@2.0.0

Don't miss a new ai release

NewReleases is sending notifications on new releases.