Skip to content

Latest commit

 

History

History

firebase

Firebase plugin for Genkit

Installing the plugin

npm i --save @genkit-ai/firebase

Using the plugin

import { genkit } from 'genkit';
import { enableFirebaseTelemetry } from '@genkit-ai/firebase';

enableFirebaseTelemetry();

const ai = genkit({
  plugins: [
    // ...
  ],
});

Troubleshooting

Telemetry upload reliability in Firebase Functions / Cloud Run

When Genkit is hosted in Google Cloud Run (including Firebase Functions), telemetry data upload may be less reliable as the container switches to the "idle" lifecycle state. If higher reliability is important to you, consider changing CPU allocation to "always allocated" in the Google Cloud Console. Note that this impacts pricing.

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