fix(aiplatform): update Gemini model from 2.0-flash to gemini-2.5-flash - #3342
Draft
angelcaamal wants to merge 5 commits into
Draft
fix(aiplatform): update Gemini model from 2.0-flash to gemini-2.5-flash#3342angelcaamal wants to merge 5 commits into
angelcaamal wants to merge 5 commits into
Conversation
Kef131
approved these changes
Aug 4, 2026
Kef131
left a comment
There was a problem hiding this comment.
Update deprecated gemini model correctly.
…ni-2.5-flash-image
…en-3.0-generate-001
…nt API and gemini-2.5-flash-image
angelcaamal
marked this pull request as draft
August 5, 2026 18:42
angelcaamal
marked this pull request as ready for review
August 5, 2026 18:43
angelcaamal
marked this pull request as draft
August 5, 2026 18:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
fix(aiplatform): update Gemini models and rewrite image generation sample
Description
This PR updates the model references and APIs used across the .NET AI Platform samples (
aiplatform/api/AIPlatform.Samples) and integration tests to align with current Vertex AI standards:gemini-2.0-flash-001togemini-2.5-flash.GenerateImage.csto use the modern Generative AI API (GenerateContentAsync) and thegemini-2.5-flash-imagemodel. This replaces the legacyPredictAsyncAPI pattern and JSON-encoded structures.Reason for Update:
gemini-2.0-flash-001reached end-of-life and was decommissioned on June 1, 2026.imagegeneration@006model was also decommissioned, causingNotFoundRPC errors in CI (GenerateImageTest.TestGenerateImageAsync). Migrating togemini-2.5-flash-imagevia theGenerateContentAPI ensures active service availability and fixes the CI pipeline.Fixes Internal: b/542706371