Skip to content

fix(llma): drop deprecated gemini-3-pro-preview from supported models#60506

Merged
brandonleung merged 1 commit into
masterfrom
brandon/drop-deprecated-gemini-3-pro
May 28, 2026
Merged

fix(llma): drop deprecated gemini-3-pro-preview from supported models#60506
brandonleung merged 1 commit into
masterfrom
brandon/drop-deprecated-gemini-3-pro

Conversation

@brandonleung
Copy link
Copy Markdown
Contributor

Problem

Google retired models/gemini-3-pro-preview. Any eval or playground call in AI Observability that picks it now fails with:

This model models/gemini-3-pro-preview is no longer available. Please update your code to use a newer model for the latest features and improvements.

gemini-3.1-pro-preview is the successor and is already in GeminiConfig.SUPPORTED_MODELS.

Changes

  • products/ai_observability/backend/llm/providers/gemini.py: remove "gemini-3-pro-preview" from SUPPORTED_MODELS. It wasn't in TRIAL_MODELS, so the trial path is unaffected.

The retired model is referenced in two other places that don't need changes:

  • services/llm-gateway/tests/test_openai.py uses it only as a fixture for unsupported-model rejection tests, no live call.
  • services/llm-gateway/src/llm_gateway/api/handler.py:53 is a docstring example.

How did you test this code?

Agent-authored PR; no manual playground or eval run.

  • Automated coverage in this area is small. products/ai_observability/backend/llm/providers/test/test_gemini_adapter.py::test_recommended_models_equals_supported_models keeps passing since recommended_models() is derived from SUPPORTED_MODELS.
  • products/ai_observability/backend/api/test/test_proxy.py enforces TRIAL_MODELS ⊆ SUPPORTED_MODELS; unaffected (the removed model wasn't in TRIAL_MODELS).

Publish to changelog?

no

Docs update

n/a

🤖 Agent context

  • Tool: Claude Code (Opus 4.7), background session.
  • User flagged an eval failure citing models/gemini-3-pro-preview is no longer available.. The agent located the surviving reference in GeminiConfig.SUPPORTED_MODELS, cross-checked Google's Gemini API model status page (it lists gemini-3-pro-preview as Shut down and gemini-3.1-pro-preview as the recommended successor), and confirmed gemini-3.1-pro-preview is already in the list.
  • Considered also bumping posthog/temporal/data_imports/signals/pipeline.py (currently pinned to models/gemini-3-flash-preview). Skipped at user direction since that model is still served as Preview by Google.

Google retired models/gemini-3-pro-preview; any eval or playground call
that picks it now fails with "This model models/gemini-3-pro-preview is
no longer available." The successor, gemini-3.1-pro-preview, is already
in the list.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@assign-reviewers-posthog assign-reviewers-posthog Bot requested a review from a team May 28, 2026 17:58
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 28, 2026

Reviews (1): Last reviewed commit: "fix(llma): drop deprecated gemini-3-pro-..." | Re-trigger Greptile

@brandonleung brandonleung merged commit 23fcc98 into master May 28, 2026
220 checks passed
@brandonleung brandonleung deleted the brandon/drop-deprecated-gemini-3-pro branch May 28, 2026 18:28
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented May 28, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-05-28 19:38 UTC Run
prod-us ✅ Deployed 2026-05-28 19:52 UTC Run
prod-eu ✅ Deployed 2026-05-28 19:56 UTC Run

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.

2 participants