Skip to content

Bump default Gemini model to gemini-2.5-flash - #1249

Merged
isamu merged 1 commit into
receptron:mainfrom
masap:fix-1248
Dec 28, 2025
Merged

isamu merged 1 commit into
receptron:mainfrom
masap:fix-1248

Conversation

@masap

@masap masap commented Dec 28, 2025 •

Copy link
Copy Markdown
Contributor

Resolves #1248.

Because gemini-1.5-flash already retired.
https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions#retired-models

Summary by CodeRabbit

  • Chores
    • Updated the default model used by the Gemini integration to the latest version.

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

@coderabbitai

coderabbitai Bot commented Dec 28, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

The default model identifier for the Gemini integration is updated from gemini-1.5-flash to gemini-2.5-flash across the TypeScript source and compiled JavaScript output to resolve API compatibility issues with the Generative AI service.

Changes

Cohort / File(s) Summary
Gemini Model Version Update
llm_agents/gemini_agent/src/gemini_agent.ts, llm_agents/gemini_agent/lib/gemini_agent.js
Default model parameter changed from gemini-1.5-flash to gemini-2.5-flash to address 404 errors from deprecated model availability

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A flash becomes brighter, from one-point-five's plight,
Two-point-five now shines with API delight,
No logic was harmed in this model's refrain,
Just strings that were swapped, and problems made plain! ✨

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately describes the primary change: updating the default Gemini model from gemini-1.5-flash to gemini-2.5-flash.
Linked Issues check ✅ Passed The PR changes directly address issue #1248 by replacing the retired gemini-1.5-flash model with gemini-2.5-flash, resolving the 404 error.
Out of Scope Changes check ✅ Passed All changes are scoped to updating the default Gemini model version; no extraneous modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 991f21f and a68dc7d.

📒 Files selected for processing (2)
  • llm_agents/gemini_agent/lib/gemini_agent.js
  • llm_agents/gemini_agent/src/gemini_agent.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build (22.x)
  • GitHub Check: build (24.x)
🔇 Additional comments (2)
llm_agents/gemini_agent/lib/gemini_agent.js (1)

78-78: LGTM! Compiled output matches the TypeScript source.

This compiled JavaScript correctly reflects the model update from the TypeScript source file. The change is consistent across both source and build artifacts.

llm_agents/gemini_agent/src/gemini_agent.ts (1)

121-121: LGTM! Model upgrade to gemini-2.5-flash is valid.

The change correctly updates the default model from gemini-1.5-flash to gemini-2.5-flash. The new model is available via Google Generative AI API (GA release June 17, 2025) and no other references to the old model exist in the codebase.


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.

@isamu

isamu commented Dec 28, 2025

Copy link
Copy Markdown
Member

Thank you for the change. I will incorporate it!!
The build files under lib will be automatically built by ci, so please do not include them in PRs from next time onwards.

@isamu
isamu merged commit 45ac1c6 into receptron:main Dec 28, 2025
@masap
masap deleted the fix-1248 branch December 28, 2025 05:34
@masap

masap commented Dec 28, 2025

Copy link
Copy Markdown
Contributor Author

The build files under lib will be automatically built by ci, so please do not include them in PRs from next time onwards.

@isamu I got it. Thank you for comment!

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.

geminiAgent failed by models/gemini-1.5-flash is not found

2 participants