Skip to content

fix: replace retired default Claude and Gemini models - #144

Merged
lich0821 merged 2 commits into
lich0821:masterfrom
pcbeingused333:fix/retired-default-models
Oct 20, 2026
Merged

lich0821 merged 2 commits into
lich0821:masterfrom
pcbeingused333:fix/retired-default-models

Conversation

@pcbeingused333

@pcbeingused333 pcbeingused333 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Several fallback model IDs that are used when an endpoint has no model configured point at models that have been retired:

  • internal/proxy/models.go: /v1/models lists claude-sonnet-4-20250514 for claude endpoints that don't support /v1/models. A client that picks a model from that list sends requests the API rejects.
  • internal/service/endpoint.go: the endpoint tests for gemini endpoints probe gemini-pro (TestEndpoint) and gemini-2.0-flash (testMinimalRequest). Both are retired, so a working Gemini endpoint can be reported as failing.

Fix

  • The Claude fallback is now claude-sonnet-4-6. claude-sonnet-4-5-20250929 isn't used because it's deprecated and retires on 2026-11-30 (model deprecations). The endpoint tests in endpoint.go still default to it; this PR doesn't change them.
  • Both Gemini probe defaults are now gemini-3.8-flash, the current stable Flash model. gemini-2.5-flash isn't a safe default anymore: the models page says it's limited to users who have used it before, and new API keys get a 404.

Endpoints that set model are unaffected.

Tests

  • New tests: internal/proxy/default_models_test.go and internal/service/default_model_test.go. The service tests record the path the upstream receives. All three new tests failed on master (they got claude-sonnet-4-20250514, gemini-pro and gemini-2.0-flash) and pass with the fix.
  • go test ./... -count=1: 179 passed. cmd/desktop fails to build in a clean checkout because frontend/dist isn't built yet. That happens on master too and is unrelated to this change.

I made this change with Claude Code and checked the result myself.

pcbeingused333 and others added 2 commits October 18, 2026 05:11
- /v1/models fallback for claude endpoints without a configured model
  advertised claude-sonnet-4-20250514, which has been retired. Use
  claude-sonnet-4-5-20250929, the same default the endpoint tests use.
- Endpoint tests for gemini endpoints without a model probed gemini-pro
  and gemini-2.0-flash, both retired, so a working endpoint could be
  reported as failing. Use gemini-3.8-flash, the current stable Flash
  model (gemini-2.5-flash is no longer available to new API users).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude-sonnet-4-5-20250929 is deprecated and retires on 2026-11-30, so
the fallback would advertise a retired model again in six weeks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lich0821
lich0821 merged commit f593adc into lich0821:master Oct 20, 2026
6 checks passed
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