@genkit-ai/vertexai
TypeScript icon, indicating that this package has built-in type declarations

1.15.5 • Public • Published

A Vertex AI plugin for Genkit

Installing the plugin

npm i --save @genkit-ai/vertexai

Using the plugin

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

/@genkit-ai/vertexai/

    Package Sidebar

    Install

    npm i @genkit-ai/vertexai

    Weekly Downloads

    27,380

    Version

    1.15.5

    License

    Apache-2.0

    Unpacked Size

    2.62 MB

    Total Files

    283

    Last publish

    Collaborators

    • pavelgj
    • i2amsam
    • apascal07
    • google-wombot