Models
Gemini Model
Configure Google Gemini as your model provider
The gemini
function configures Google’s Gemini as your model provider.
Configuration
The gemini
function accepts a model name string or a configuration object:
Options
ID of the model to use. See the model endpoint compatibility table for details on which models work with the Gemini API.
The Google API key to use for authenticating your request. By default we’ll
search for and use the GOOGLE_API_KEY
environment variable.
The base URL for the Gemini API.
The default parameters to use for the model.
See Gemini’s models.generateContent
reference.
Available Models
Gemini
For the latest list of available models, see Google’s Gemini model overview.
Limitations
Gemini models do not currently support function without parameters.