feat: update Gemini and Vertex AI models from preview to GA version #5907
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
gemini-2.5-pro-preview-03-25
gemini-2.5-pro-preview-05-06
gemini-2.5-pro-preview-06-05
gemini-2.5-pro
across all providersBackward Compatibility Implementation
isLegacyPreviewModel()
methodgoogle/gemini-2.5-pro-preview
Test Updates
Testing
Verification of Acceptance Criteria
gemini-2.5-pro
is now the current model across all providersImpact
This change ensures that:
Important
Update Gemini and Vertex AI models from preview to GA version, ensuring backward compatibility and updating tests.
gemini-2.5-pro-preview-03-25
,gemini-2.5-pro-preview-05-06
,gemini-2.5-pro-preview-06-05
fromgemini.ts
andvertex.ts
.gemini-2.5-pro
ingemini.ts
andvertex.ts
.isLegacyPreviewModel()
inGeminiHandler
andOpenRouterHandler
to map preview models to GA version.VertexHandler
inherits backward compatibility logic fromGeminiHandler
.openrouter.spec.ts
to reflect removal of preview models and use GA modelgoogle/gemini-2.5-pro
.This description was created by
for 3dacc9f. You can customize this summary. It will automatically update as commits are pushed.