A Vertex AI plugin for Genkit

npm i --save @genkit-ai/vertexai
import { genkit } from 'genkit';
import { vertexAI, gemini, gemini15Flash } from '@genkit-ai/vertexai';

const ai = genkit({
plugins: [vertexAI()],
model: gemini15Flash,
});

async () => {
const { text } = ai.generate('hi Gemini!');
console.log(text);
};

The sources for this package are in the main Genkit repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Genkit documentation.

License: Apache 2.0

Modules

/
evaluation
modelgarden
rerankers
vectorsearch