Skip to content

Add support for Gemini 2.5 models#29

Open
JulianPscheid wants to merge 6 commits intoleancodepl:mainfrom
JulianPscheid:add-gemini-2.5-support
Open

Add support for Gemini 2.5 models#29
JulianPscheid wants to merge 6 commits intoleancodepl:mainfrom
JulianPscheid:add-gemini-2.5-support

Conversation

@JulianPscheid
Copy link
Copy Markdown

Summary

  • Added support for Gemini 2.5 Pro, Flash, and Flash-Lite models
  • Updated default model from Gemini 2.0 Flash to Gemini 2.5 Flash
  • Fixed switch statements in GeminiTranslationDelegate to handle new models

Changes

  1. Added Gemini 2.5 models to the Model enum:

    • gemini-2.5-pro (Gemini 2.5 Pro)
    • gemini-2.5-flash (Gemini 2.5 Flash)
    • gemini-2.5-flash-lite (Gemini 2.5 Flash-Lite)
  2. Updated model handling:

    • Added new models to geminiModels set
    • Updated switch statements in both GeminiTranslationDelegate constructors
    • Changed default model to gemini-2.5-flash in TranslateOptions and TranslateArgParser
  3. Updated documentation:

    • README.md now lists all available models including Gemini 2.5
    • Added changelog entry for version 1.3.0
    • Bumped version to 1.3.0

Testing

  • ✅ Static analysis passes (dart analyze)
  • ✅ Unit tests pass
  • ✅ Help command correctly displays all models with proper default
  • ✅ All model references have been updated

Notes

Google released Gemini 2.5 models with enhanced thinking capabilities. This PR ensures arb_translate users can leverage these latest models for their translation needs.

flowhorn and others added 6 commits March 1, 2025 10:21
…0-flash-lite, and gpt4o-mini. Update README and changelog accordingly.
- Add Gemini 2.5 Pro, Flash, and Flash-Lite models
- Update default Gemini model to 2.5 Flash
- Update documentation and bump version to 1.3.0

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add Gemini 2.5 models to switch statements in GeminiTranslationDelegate
- Update default model in argument parser to Gemini 2.5 Flash
- Fix ArgumentError when using new Gemini 2.5 models

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@alihassan143
Copy link
Copy Markdown

@JulianPscheid kindly create new package and publish it current author did not replying on any issues

@mono0926
Copy link
Copy Markdown

mono0926 commented Oct 23, 2025

Thank you for your support 🙏

I have successfully used this Gemini 2.5 compatible version with the command below 👍

dart pub global activate -sgit https://github.com/JulianPscheid/arb_translate --git-ref c8c0b31623956e545172e0bdf9ef0242c49e0f7d

@MilkBiscuit
Copy link
Copy Markdown

Thanks for your work @JulianPscheid , I also used your forked version as temp solution.

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.

5 participants