Google Models
To setup a model from Google, visit https://ai.google.dev/ and select Get API key.
Copy the API key into into your config.js file assigning it to the “apiKey” property.
For example:
models: {
"Gemini Pro": {
provider: "google",
model: "gemini-pro",
apiKey: "AI......"
}
}
Prior to using models from Google, you must install the following prerequisites:
Node.js v18+
GoogleGenerativeAI package - use command below to install:
npm install @google/generative-ai