Repository navigation
feat(k8s): fall back from Sonnet to DeepSeek - #3154
Merged
dan-petty merged 4 commits intoNov 2, 2026
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 2, 2026 05:50
dan-petty
deleted the
feat/3152-fall-back-from-claude-sonnet-to-deepseek
branch
November 2, 2026 05:50
dan-petty
pushed a commit
that referenced
this pull request
Nov 2, 2026
🤖 I have created a release *beep* *boop* --- ## [0.41.0](v0.40.0...v0.41.0) (2026-11-02) ### Features * **k8s:** fall back from Sonnet to DeepSeek ([#3154](#3154)) ([11dc347](11dc347)), closes [#3152](#3152) * **roadmap:** plan the stage job with a read-only toolbox ([#3160](#3160)) ([9179b22](9179b22)), closes [#3037](#3037) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
What changes
The gateway falls back from
claude-sonnet-5-5todeepseek-v4.1-flash-1017when a Sonnet call fails (an Anthropic error, a rate limit or a spend limit).k8s/llm/gateway/config.yaml: one fallback,claude-sonnet-5-5: [deepseek-v4.1-flash-1017].k8s/README.mdandSECURITY.mdrule 12: the prompt of a failed Claude call goes to OpenRouter, not to Anthropic.Why
Hosted groups had no fallback, and the Claude account reached its spend limit on 2026-11-02. In the review of 12 golden plans, DeepSeek found 38% of the known defects (48% of the major ones) against 56% (68%) for Sonnet 5.5. Haiku 5.5 found 36% and costs more per token. The Gemini Flash Lite, Gemma 4 and older Gemini models found 7 to 25%, Gemini 2.5 answers 404 for a new account, and Gemma 4 on the free tier takes only 16000 input tokens a minute, so none of them is a fallback.
Verification
Routerbuilt from the two groups and this fallback answers a failed Sonnet call withopenrouter/deepseek/deepseek-v4.1-flash-1017:floor. Without the fallback, it raisesInternalServerError.Closes #3152