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

1.6.2 • Public • Published

Google Gemini Developer API plugin for Genkit

Installing the plugin

npm i --save @genkit-ai/googleai

Using the plugin

import { genkit } from 'genkit';
import { googleAI, gemini } from '@genkit-ai/googleai';

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

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

Package Sidebar

Install

npm i @genkit-ai/googleai

Weekly Downloads

20,650

Version

1.6.2

License

Apache-2.0

Unpacked Size

732 kB

Total Files

66

Last publish

Collaborators

  • pavelgj
  • i2amsam
  • apascal07
  • google-wombot