Skip to content

Conversation

@pavelgj
Copy link
Collaborator

@pavelgj pavelgj commented Jan 27, 2025

gemini model ref helper, consistent with googleAI plugin.

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

const gemini15Flash042 = gemini('gemini-1.5-flash-042');
const ai = genkit({
  plugins: [
    vertexAI({
      models: [gemini15Flash042]
    })
  ],
  model: gemini15Flash042
});

await generate('hi')

Checklist (if applicable):

@pavelgj pavelgj requested a review from MichaelDoyle January 27, 2025 21:39
@pavelgj pavelgj merged commit 0272f27 into main Jan 28, 2025
4 checks passed
@pavelgj pavelgj deleted the pj/vertexGeminiRefs branch January 28, 2025 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants