Skip to content

fix(#252): migrate deprecated Gemini 3 preview endpoint#270

Merged
mottych merged 1 commit intomasterfrom
hotfix/issue-252-migrate-gemini-models
Mar 12, 2026
Merged

fix(#252): migrate deprecated Gemini 3 preview endpoint#270
mottych merged 1 commit intomasterfrom
hotfix/issue-252-migrate-gemini-models

Conversation

@mottych
Copy link
Copy Markdown
Owner

@mottych mottych commented Mar 12, 2026

Summary

  • Migrate deprecated Vertex endpoint usage from gemini-3-pro-preview to gemini-3.1-pro-preview in the model registry and Google Vertex provider allowlist.
  • Upgrade google-genai dependency to current release (1.67.0) in both runtime and project dependency declarations.
  • Refresh coaching/scripts/test_google_vertex.py to validate google-genai directly and default Vertex location to global for 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.py
  • uvx ruff format coaching/src/core/llm_models.py coaching/src/infrastructure/llm/google_vertex_provider.py coaching/scripts/test_google_vertex.py
  • uv 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.py
  • Preprod deployment + smoke tests: https://github.com/mottych/PurposePath_AI/actions/runs/23023408250
  • Production post-deploy verification

Made with Cursor

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
@mottych mottych merged commit 0994068 into master Mar 12, 2026
5 checks passed
@mottych mottych deleted the hotfix/issue-252-migrate-gemini-models branch March 12, 2026 21:14
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.

1 participant