Skip to content

[genkit_firebase_ai] Support Vertex AI Gemini API#296

Open
goderbauer wants to merge 2 commits into
genkit-ai:mainfrom
goderbauer:addVertexAI
Open

[genkit_firebase_ai] Support Vertex AI Gemini API#296
goderbauer wants to merge 2 commits into
genkit-ai:mainfrom
goderbauer:addVertexAI

Conversation

@goderbauer

@goderbauer goderbauer commented Jun 8, 2026

Copy link
Copy Markdown

Fixes #295

The Firebase AI Logic SDK supports two Gemini API providers:

  • Gemini Developer API, and
  • Vertex AI Gemini API

Prior to this change the genkit_firebase_ai package was hardcoding "Gemini Developer API" as API provider. This change enables consumers of the package to optionally use the "Vertex AI Gemini API".

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/genkit_firebase_ai/lib/genkit_firebase_ai.dart
Comment thread packages/genkit_firebase_ai/lib/genkit_firebase_ai.dart Outdated
Comment thread packages/genkit_firebase_ai/lib/genkit_firebase_ai.dart Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[genkit_firebase_ai] Support Vertex AI Gemini API

1 participant