Skip to content

feat(google,google-vertex): add gemini-embedding-2 GA model ID#15584

Closed
kagura-agent wants to merge 1 commit into
vercel:mainfrom
kagura-agent:fix/gemini-embedding-2-ga
Closed

feat(google,google-vertex): add gemini-embedding-2 GA model ID#15584
kagura-agent wants to merge 1 commit into
vercel:mainfrom
kagura-agent:fix/gemini-embedding-2-ga

Conversation

@kagura-agent
Copy link
Copy Markdown
Contributor

Summary

gemini-embedding-2 is 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-2 as a first-class model ID to both the Google and Google Vertex providers.

Changes

  • @ai-sdk/google: Add 'gemini-embedding-2' to GoogleEmbeddingModelId type union
  • @ai-sdk/google-vertex: Add 'gemini-embedding-2' to GoogleVertexEmbeddingModelId type union
  • Docs: Add gemini-embedding-2 to model capability tables and update examples to reference the GA model name
  • Changeset: Patch for both packages

The -preview alias is kept for backwards compatibility.

Closes #15582

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
Copy link
Copy Markdown
Collaborator

@aayush-kapoor aayush-kapoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gemini-embedding-2 is not in preview anymore

2 participants