fix(#252): migrate deprecated Gemini 3 preview endpoint#270
Merged
Conversation
Update Vertex model configuration from gemini-3-pro-preview to gemini-3.1-pro-preview and bump google-genai to a current release to avoid endpoint retirement disruption. Made-with: Cursor
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.
Summary
gemini-3-pro-previewtogemini-3.1-pro-previewin the model registry and Google Vertex provider allowlist.google-genaidependency to current release (1.67.0) in both runtime and project dependency declarations.coaching/scripts/test_google_vertex.pyto validategoogle-genaidirectly and default Vertex location toglobalfor Gemini 3.1 model compatibility.Incident Context
Issue #252 tracks Google Cloud's retirement of
gemini-3-pro-preview, which would cause runtime failures after endpoint removal if left unchanged.Online Research References
Validation
uvx ruff check coaching/src/core/llm_models.py coaching/src/infrastructure/llm/google_vertex_provider.py coaching/scripts/test_google_vertex.pyuvx ruff format coaching/src/core/llm_models.py coaching/src/infrastructure/llm/google_vertex_provider.py coaching/scripts/test_google_vertex.pyuv run mypy coaching/src/core/llm_models.py coaching/src/infrastructure/llm/google_vertex_provider.py --explicit-package-bases.venv\Scripts\python -m pytest coaching/tests/unit/infrastructure/llm/test_google_vertex_provider.pyMade with Cursor