Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 897 Bytes

File metadata and controls

34 lines (22 loc) · 897 Bytes

Gemini Example (Single Provider)

This example demonstrates how to use LaunchDarkly's AI Config with the Google Gemini provider.

Prerequisites

Setup

  1. Create the following config in your LaunchDarkly project. You can use a different key by setting the environment variable in your .env.

    • Create an AI Config with a Gemini model (e.g. gemini-2.0-flash) and a system message. Default key: sample-completion.
  2. Copy .env.example to .env and fill in your keys:

    cp .env.example .env
  3. Install the required dependencies:

    poetry install

Run

poetry run gemini