Skip to content

Conversation

@andrewheard
Copy link
Contributor

Replaced gemini-2.0-flash-001 with gemini-2.5-flash-lite and, more importantly, replaced imagen-3.0-generate-002 with imagen-4.0-fast-generate-001. Imagen 3 is deprecated on the Gemini Developer API as of 2025-11-10.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @andrewheard, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on updating the AI models used within the Firebase AI example application. The primary goal is to ensure compatibility and leverage the latest capabilities by migrating from older model versions, particularly addressing the upcoming deprecation of Imagen 3.0, and improving the Gemini model integration.

Highlights

  • Gemini Model Update: The gemini-2.0-flash-001 model has been replaced with the newer gemini-2.5-flash-lite across various example screens and view models.
  • Imagen Model Update and Deprecation: The imagen-3.0-generate-002 model has been upgraded to imagen-4.0-fast-generate-001. This change is crucial as Imagen 3.0 is slated for deprecation on the Gemini Developer API by November 10, 2025.
  • Imagen Aspect Ratio Adjustment: The default aspect ratio for image generation in the Imagen example has been updated from landscape4x3 to square1x1 to align with the new Imagen 4.0 model.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

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

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 correctly updates the Gemini and Imagen models to newer versions, which is an important update to keep the example app current and avoid using deprecated models. The changes look good. My main feedback is to consider centralizing the model name strings. Currently, they are duplicated across multiple files, which makes updates like this one more tedious and error-prone. Defining them as constants in a single place would significantly improve the code's maintainability.

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

Let's talk again about adding the enum ....

@andrewheard andrewheard merged commit e373efa into main Nov 18, 2025
7 checks passed
@andrewheard andrewheard deleted the ah/ai-update-model-versions branch November 18, 2025 16:49
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.

2 participants