firebase / genkit

An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.
Apache License 2.0
756 stars 111 forks source link

feat: repackage genkit under `genkit` package and move CLI to `genkit-cli` #934

Closed pavelgj closed 1 month ago

pavelgj commented 1 month ago
import { genkit } from 'genkit';
import { gemini15Flash, googleAI } from '@genkit-ai/googleai';

const ai = genkit({ plugins: [googleAI()] });

await ai.generate({
  model: gemini15Flash,
  prompt: 'hi',
});