Skip to content

feat: update Gemini and Vertex AI models from preview to GA version #5907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

roomote[bot]
Copy link

@roomote roomote bot commented Jul 18, 2025

Fixes #5444

This PR updates the Gemini and Vertex AI model naming conventions from outdated preview versions to the GA (Generally Available) version, as requested in issue #5444.

Changes Made

Model Definition Updates

  • Removed outdated preview models from type definitions:
    • gemini-2.5-pro-preview-03-25
    • gemini-2.5-pro-preview-05-06
    • gemini-2.5-pro-preview-06-05
  • Updated to GA model: gemini-2.5-pro across all providers

Backward Compatibility Implementation

  • Added legacy model detection in Gemini provider with isLegacyPreviewModel() method
  • Implemented automatic mapping from preview models to GA version
  • Extended Vertex provider to inherit the same backward compatibility logic
  • Added OpenRouter preview model mapping for google/gemini-2.5-pro-preview

Test Updates

  • Fixed OpenRouter test expectations to reflect removal of preview model references
  • Updated test endpoints to use GA model instead of preview

Testing

  • All existing tests should pass with backward compatibility
  • Users with existing preview model selections will automatically get mapped to the GA version
  • No breaking changes for existing configurations

Verification of Acceptance Criteria

  • Remove outdated preview models: All preview model definitions removed from type files
  • Update to GA version: gemini-2.5-pro is now the current model across all providers
  • Maintain backward compatibility: Users with existing preview model selections will automatically get mapped to the GA version
  • Update related integrations: OpenRouter provider updated accordingly

Impact

This change ensures that:

  1. Users get the most current and supported model from Google
  2. Existing configurations continue to work without manual intervention
  3. Future model updates follow Google's official naming conventions
  4. No service disruption for current users with preview model selections

Important

Update Gemini and Vertex AI models from preview to GA version, ensuring backward compatibility and updating tests.

  • Model Definition Updates:
    • Removed preview models gemini-2.5-pro-preview-03-25, gemini-2.5-pro-preview-05-06, gemini-2.5-pro-preview-06-05 from gemini.ts and vertex.ts.
    • Updated to GA model gemini-2.5-pro in gemini.ts and vertex.ts.
  • Backward Compatibility:
    • Added isLegacyPreviewModel() in GeminiHandler and OpenRouterHandler to map preview models to GA version.
    • VertexHandler inherits backward compatibility logic from GeminiHandler.
  • Test Updates:
    • Updated openrouter.spec.ts to reflect removal of preview models and use GA model google/gemini-2.5-pro.

This description was created by Ellipsis for 3dacc9f. You can customize this summary. It will automatically update as commits are pushed.

- Remove outdated preview models (gemini-2.5-pro-preview-03-25, gemini-2.5-pro-preview-05-06, gemini-2.5-pro-preview-06-05) from gemini.ts and vertex.ts
- Add backward compatibility logic in Gemini and Vertex providers to automatically map legacy preview models to gemini-2.5-pro GA version
- Update OpenRouter provider to handle legacy preview model mapping
- Update OpenRouter tests to reflect removal of preview model references

Fixes #5444
@roomote roomote bot requested review from mrubens, cte and jr as code owners July 18, 2025 17:34
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 18, 2025
@dosubot dosubot bot added the enhancement New feature or request label Jul 18, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 18, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jul 19, 2025
@hannesrudolph hannesrudolph added PR - Needs Preliminary Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jul 19, 2025
@daniel-lxs
Copy link
Collaborator

Closing in favor of #5990

@daniel-lxs daniel-lxs closed this Jul 21, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jul 21, 2025
@github-project-automation github-project-automation bot moved this from PR [Needs Prelim Review] to Done in Roo Code Roadmap Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR - Needs Preliminary Review size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Updating Gemini and Vertex AI model's naming convention for gemini-2.5-pro-preview-{dates} to gemini-2.5-pro
3 participants