Skip to content

fix: updated the Google AI datasource's gemini models with options compatatible with generate command#41415

Merged
tomjose92 merged 1 commit intoreleasefrom
fix/issue-41105/update-gemini-models
Nov 26, 2025
Merged

fix: updated the Google AI datasource's gemini models with options compatatible with generate command#41415
tomjose92 merged 1 commit intoreleasefrom
fix/issue-41105/update-gemini-models

Conversation

@tomjose92
Copy link
Contributor

@tomjose92 tomjose92 commented Nov 25, 2025

Description

Replace gemini-pro that has been deprecated with 5 models as below

  1. gemini-2.5-flash
  2. gemini-2.5-pro
  3. gemini-2.0-flash
  4. gemini-flash-latest
  5. gemini-flash-lite-latest

All these models support the generate content command as verified from this List Models API here: https://generativelanguage.googleapis.com/v1beta/models?key=<GOOGLE_API_KEY>

Fixes #41105

Automation

/ok-to-test tags="@tag.All"

🔍 Cypress test results

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/19674900186
Commit: 13074e8
Cypress dashboard.
Tags: @tag.All
Spec:


Tue, 25 Nov 2025 16:44:56 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features
    • Google AI plugin now supports additional AI models: Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, Gemini Flash Latest, and Gemini Flash Lite Latest, expanding your model selection options.

✏️ Tip: You can customize this high-level summary in your review settings.

…hat is compatible for generateContent command. Also updated respective test cases.
@github-actions github-actions bot added Bug Something isn't working Community Reported issues reported by community members High This issue blocks a user from building or impacts a lot of users Needs Triaging Needs attention from maintainers to triage Release labels Nov 25, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 25, 2025

Walkthrough

Update the GoogleAI plugin to support current Gemini model versions. Replace the deprecated "gemini-pro" model with five new models (gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash, gemini-flash-latest, gemini-flash-lite-latest) in the supported models constant and corresponding test cases.

Changes

Cohort / File(s) Summary
Constants Update
app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/constants/GoogleAIConstants.java
GOOGLE_AI_MODELS constant updated from single-entry list containing "gemini-pro" to multi-entry list with five current Gemini model versions.
Test Updates
app/server/appsmith-plugins/googleAiPlugin/src/test/java/com/external/plugins/GenerateContentCommandTest.java, app/server/appsmith-plugins/googleAiPlugin/src/test/java/com/external/plugins/GoogleAiPluginTest.java
Model references updated in test data and mock responses from "gemini-pro" to "gemini-2.5-pro"; test assertions adjusted to expect five models instead of one.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

  • Straightforward constant value update with no logic changes
  • Test updates follow a consistent pattern (model name replacement)
  • No control flow or architectural modifications

Poem

🤖 Old models fade to time's forgotten past,
Five shiny Geminis arrive at last!
From pro to flash, a brighter crew,
The Google API gets its overdue fix—hooray for you! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR successfully addresses issue #41105 by replacing the deprecated gemini-pro model with five supported alternatives that work with generateContent [#41105].
Out of Scope Changes check ✅ Passed All changes are tightly scoped: updates to constants, corresponding test updates to use new models, and test assertions reflecting the expanded model list—all directly addressing the linked issue.
Title check ✅ Passed The title accurately reflects the main change: updating Google AI's gemini models list to newer, API-compatible versions that support the generate command.
Description check ✅ Passed The PR description is well-structured and addresses the template requirements with clear context, issue reference, test results, and automation details.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/issue-41105/update-gemini-models

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot removed the Bug Something isn't working label Nov 25, 2025
@tomjose92 tomjose92 changed the title Updated the Google AI datasource's gemini models with options compatatible with generate command feat: updated the Google AI datasource's gemini models with options compatatible with generate command Nov 25, 2025
@github-actions github-actions bot added the Bug Something isn't working label Nov 25, 2025
@github-actions github-actions bot added Enhancement New feature or request Bug Something isn't working and removed Bug Something isn't working labels Nov 25, 2025
@tomjose92 tomjose92 changed the title feat: updated the Google AI datasource's gemini models with options compatatible with generate command fix: updated the Google AI datasource's gemini models with options compatatible with generate command Nov 25, 2025
@github-actions github-actions bot added Bug Something isn't working and removed Enhancement New feature or request labels Nov 25, 2025
@tomjose92 tomjose92 self-assigned this Nov 25, 2025
@github-actions
Copy link

Failed server tests

  • com.appsmith.server.helpers.UserUtilsTest#makeInstanceAdministrator_WhenUserAlreadyAdmin_MaintainsPermissionsSuccessfully

@tomjose92 tomjose92 added the ok-to-test Required label for CI label Nov 25, 2025
"gemini-2.5-flash",
"gemini-2.0-flash",
"gemini-flash-latest",
"gemini-flash-lite-latest");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please verify if these two are valid models?

  • gemini-flash-latest
  • gemini-flash-lite-latest
    Asking this because I didn't find any valid reference for these two models.

Copy link
Contributor Author

@tomjose92 tomjose92 Nov 25, 2025

Choose a reason for hiding this comment

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

@subrata71 , yes I had tested for these two models with the API. And also had verified it with this api that Lists all the models along with the commands each supports
https://generativelanguage.googleapis.com/v1beta/models?key=<GOOGLE_API_KEY>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add this info to the PR description as well for future reference if we want to update these models by checking the latest list

@tomjose92
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/19686400000.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 41415.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://ce-41415.dp.appsmith.com

@tomjose92 tomjose92 merged commit e6ffbae into release Nov 26, 2025
107 of 109 checks passed
@tomjose92 tomjose92 deleted the fix/issue-41105/update-gemini-models branch November 26, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Community Reported issues reported by community members High This issue blocks a user from building or impacts a lot of users Needs Triaging Needs attention from maintainers to triage ok-to-test Required label for CI Release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Default value in GoogleAIPlugin

2 participants