Skip to content

fix(antigravity): hide deprecated Gemini-Claude models - #1631

Merged
diegosouzapw merged 2 commits into
cheaper-inference:release/v3.7.1from
backryun:antigravitymodelfix
Apr 26, 2026
Merged

diegosouzapw merged 2 commits into
cheaper-inference:release/v3.7.1from
backryun:antigravitymodelfix

Conversation

@backryun

Copy link
Copy Markdown
Contributor

Summary

  • Hide deprecated Antigravity Gemini-routed Claude 4.5 models from public model catalogs and UI-facing model lists.
  • Keep legacy Gemini-Claude aliases resolvable by routing them to current Antigravity Claude 4.6 models.
  • Replace automatic reverse alias generation with an explicit allowlist so current Claude 4.6 models are not displayed as deprecated Gemini-Claude aliases.

Validation

  • npm run lint
  • npm run test:unit
  • npm run test:coverage
  • Coverage is still >= 60% for statements, lines, functions, and branches
  • SonarQube PR analysis is green or any remaining issues are explicitly documented below

Targeted validation run:

  • node --import tsx/esm --test tests/unit/antigravity-model-aliases.test.ts tests/unit/models-catalog-route.test.ts tests/unit/t28-model-catalog-updates.test.ts tests/unit/t31-t33-t34-t38-model-specs.test.ts

Tests Added Or Updated

  • tests/unit/antigravity-model-aliases.test.ts
  • tests/unit/models-catalog-route.test.ts
  • tests/unit/t28-model-catalog-updates.test.ts
  • tests/unit/t31-t33-t34-t38-model-specs.test.ts

Coverage Notes

  • open-sse/config/antigravityModelAliases.ts is covered by updated alias resolution tests and catalog visibility tests.
  • Coverage was not re-generated locally; only targeted unit tests were run.

Reviewer Notes

  • Deprecated Gemini-Claude model IDs are removed from ANTIGRAVITY_PUBLIC_MODELS only, so they no longer appear in UI-facing catalogs.
  • Legacy alias support is retained, but the aliases now route to current Antigravity Claude 4.6 model IDs.
  • Reverse alias generation is now explicit to prevent current upstream IDs from being displayed as deprecated client-facing IDs.

@backryun
backryun requested a review from diegosouzapw as a code owner April 26, 2026 18:35
@backryun

backryun commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor Author

I’ve built it in a local environment and completed all testing and verification myself.
I’m confident this commit is truly problem-free, apologize for the pull requests that keep breaking because I’m not very familiar with Git.

image

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Antigravity model configuration by renaming public models, updating alias mappings, and refactoring the reverse alias lookup into a static object. Corresponding unit tests were updated to reflect these changes and ensure legacy IDs are correctly excluded from the catalog. Feedback suggests correcting a potential naming error for the Claude Sonnet model and adding a type annotation to the static reverse alias object to maintain TypeScript compatibility.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@diegosouzapw
diegosouzapw merged commit 4692621 into cheaper-inference:release/v3.7.1 Apr 26, 2026
1 of 2 checks passed
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Thanks @backryun for this clean contribution! The deprecated Gemini-Claude model cleanup has been squash-merged into release/v3.7.1. The explicit reverse-alias allowlist approach is much better than the dynamic generation -- makes model visibility predictable. Will be included in the next release. 🎉

diegosouzapw added a commit that referenced this pull request Apr 26, 2026
…cleanup), fix test regression

- PR #1630: Set NPM_CONFIG_LEGACY_PEER_DEPS=true in Dockerfile, remove duplicate COPY
- PR #1631: Hide deprecated gemini-claude-* models from catalogs, redirect to Claude 4.6
- Fix provider-models-route test to match renamed model display name
- Update CHANGELOG.md with both PR entries
@backryun
backryun deleted the antigravitymodelfix branch April 26, 2026 22:39
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
…ence#1631)

fix(antigravity): hide deprecated Gemini-Claude models, redirect legacy aliases to Claude 4.6 — integrated into release/v3.7.1
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
…inference#1631 (Antigravity model cleanup), fix test regression

- PR cheaper-inference#1630: Set NPM_CONFIG_LEGACY_PEER_DEPS=true in Dockerfile, remove duplicate COPY
- PR cheaper-inference#1631: Hide deprecated gemini-claude-* models from catalogs, redirect to Claude 4.6
- Fix provider-models-route test to match renamed model display name
- Update CHANGELOG.md with both PR entries
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…ence#1631)

fix(antigravity): hide deprecated Gemini-Claude models, redirect legacy aliases to Claude 4.6 — integrated into release/v3.7.1
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…inference#1631 (Antigravity model cleanup), fix test regression

- PR cheaper-inference#1630: Set NPM_CONFIG_LEGACY_PEER_DEPS=true in Dockerfile, remove duplicate COPY
- PR cheaper-inference#1631: Hide deprecated gemini-claude-* models from catalogs, redirect to Claude 4.6
- Fix provider-models-route test to match renamed model display name
- Update CHANGELOG.md with both PR entries
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