Google Gemini
Use Gemini models in BOR with a Google AI / Gemini API key. Adapter:server/providers/gemini.js.
Setup
- Get a key from Google AI Studio (linked from onboarding).
- In onboarding, pick Google Gemini, paste your key, and choose a model.
- BOR validates and you’re set.
Choosing a model
Pick a current Gemini model from Google’s live docs — ids change across the 2.x/3.x lines, so avoid stale ones. A vision-capable model is recommended for the screenshot-driven features.Notes
- Gemini supports context caching via
cachedContents; BOR’s prompt-cache layer uses it where available. - Image blocks and streaming go through the shared multimodal utilities.
- Change the key/model in
providers.geminiinconfig.json, or ask BOR to switch.
Troubleshooting
- API key invalid / permission — re-check the key and that the Generative Language API is enabled for it.
- 404 model — the id retired; pick a current Gemini model.
- See Troubleshooting.