[genkit_firebase_ai] Support Vertex AI Gemini API#296
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a FirebaseAiProvider sealed class to support both Google AI and Vertex AI providers, updating the plugin to instantiate the appropriate Firebase AI client based on the configured provider. The reviewer suggests refactoring the duplicated switch (provider) blocks across the plugin by extracting them into a single private helper getter _firebaseAi to improve code maintainability and reduce duplication.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Fixes #295
The Firebase AI Logic SDK supports two Gemini API providers:
Prior to this change the
genkit_firebase_aipackage was hardcoding "Gemini Developer API" as API provider. This change enables consumers of the package to optionally use the "Vertex AI Gemini API".