Expand description
Google Gemini adapter.
Converts the internal Chat Completions format to the Gemini
generateContent API and maps responses back.
Key differences from OpenAI Chat Completions:
- Uses
contentsarray withpartsinstead ofmessages - System instruction is a separate top-level field
- Tool calls use
functionCall/functionResponse - Endpoint:
https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent
Structs§
- Gemini
Adapter - Adapter for the Google Gemini
generateContentAPI.
Functions§
- gemini_
api_ url - Build the full Gemini API URL for a given model.