github vercel/ai @ai-sdk/google@2.0.0-beta.11

latest releases: @ai-sdk/google-vertex@3.0.23, @ai-sdk/azure@2.0.26, @ai-sdk/openai@2.0.26...
pre-releaseone month ago

Patch Changes

  • 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;
    }

Don't miss a new ai release

NewReleases is sending notifications on new releases.