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.- Together
- DeepInfra