Skip to main content
Curator can send requests through LiteLLM, which supports many LLM providers. Curator picks the LiteLLM backend on its own for most models that are not from OpenAI, Anthropic, or Mistral. You can also choose it with backend="litellm". This guide generates recipes with Gemini.

Prerequisites

  • Python 3.10 or later.
  • Curator, installed with pip install bespokelabs-curator.
  • An API key for your provider. For Gemini, get one from Google AI Studio.
1

Create an LLM subclass

2

Create the input dataset

3

Set the API key

4

Configure the LiteLLM backend

Use the model name in LiteLLM format, which starts with the provider prefix.
Set the rate limits to match your account. See Online processing for all the rate limit settings.
5

Generate the data

Other providers

Each provider needs its own API key and model prefix. The LiteLLM provider list has the details for every provider.
Find other models in the Together model list. Some models do not support structured output.