feat(google,google-vertex): add gemini-embedding-2 GA model ID#15584
Closed
kagura-agent wants to merge 1 commit into
Closed
feat(google,google-vertex): add gemini-embedding-2 GA model ID#15584kagura-agent wants to merge 1 commit into
kagura-agent wants to merge 1 commit into
Conversation
The gemini-embedding-2 model is now generally available and no longer in preview. Add it as a first-class model ID to both the Google and Google Vertex providers, and update documentation to reference the GA model name. Closes vercel#15582
Collaborator
There was a problem hiding this comment.
marking as closed in favor of #15587 since its signed and covers addition of other model ids.
going forward please sign your commits!
kagura-agent
added a commit
to kagura-agent/github-contribution
that referenced
this pull request
May 30, 2026
From vercel/ai#15584 lesson: PR superseded partly due to unsigned commits. One-time setup cost, every PR benefits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gemini-embedding-2is now generally available and no longer in preview. When using multi-region endpoints (e.g.eu), the previous preview model is not available at all.This PR adds
gemini-embedding-2as a first-class model ID to both the Google and Google Vertex providers.Changes
@ai-sdk/google: Add'gemini-embedding-2'toGoogleEmbeddingModelIdtype union@ai-sdk/google-vertex: Add'gemini-embedding-2'toGoogleVertexEmbeddingModelIdtype uniongemini-embedding-2to model capability tables and update examples to reference the GA model nameThe
-previewalias is kept for backwards compatibility.Closes #15582