Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(js/plugins/vertexai): instruduced gemini model ref helper and ability to register versions #1668

Merged
merged 7 commits into from
Jan 28, 2025

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