Skip to content

Conversation

@nozomi-koborinai
Copy link
Contributor

@nozomi-koborinai nozomi-koborinai commented Apr 6, 2025

Add support for Vertex AI's Gemini 2.5 Pro Experimental model (03-25)

This model is already available in the Vertex AI API and has been added to other language implementations (go/googleai, go/vertexai, js/googleai) but was missing from the JS implementation.

How to use

import { genkit } from 'genkit';
import { vertexAI, gemini25ProExp0325 } from '@genkit-ai/vertexai';

// Configure Genkit with the Vertex AI plugin
const ai = genkit({
  plugins: [vertexAI({ location: 'us-central1' })],
});

// Use the model directly
await ai.generate({
  model: gemini25ProExp0325,
  prompt: 'Explain quantum computing in simple terms'
});

This addition ensures our JS SDK stays in sync with the latest available Vertex AI models.

Checklist (if applicable):

@yesudeep yesudeep merged commit 9d7e267 into firebase:main Apr 6, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants