Skip to content

fix(k8s): the DeepSeek gateway group gets a fallback group - #5565

Merged
dan-petty merged 1 commit into
mainfrom
fix/5564-deepseek-fallback
Nov 13, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5564-deepseek-fallback

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A failed call of deepseek-v4.1-flash-1017, such as a timeout of its OpenRouter floor route when its cheapest provider is down, now goes to the new hosted group deepseek-v4.1-flash. That group calls the undated model with no floor route, so OpenRouter balances the call across its providers. It keeps the same fp8 and data_collection: deny filters, so the privacy control does not change. The group is priced at the list price of the model, the top of what its providers charge, in the gateway config and in _HOSTED_GROUP_PRICES. SECURITY.md item 13 and k8s/README.md name the new group and the second fallback.

Closes #5564
Change: openspec/changes/archive/2026-11-13-5564-the-deepseek-gateway-group-gets-a/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 13, 2026
@dan-petty
dan-petty force-pushed the fix/5564-deepseek-fallback branch from 53e403a to d0eac74 Compare November 13, 2026 23:02
A failed call of deepseek-v4.1-flash-1017, such as a timeout of its OpenRouter floor route, now goes to the hosted group deepseek-v4.1-flash: the undated model with no floor route and the same fp8 and data_collection deny filters (owner decision 2026-11-13). The group is priced at the list price of the model in the gateway config and in _HOSTED_GROUP_PRICES, and SECURITY.md item 13 and k8s/README.md name it.
@dan-petty
dan-petty force-pushed the fix/5564-deepseek-fallback branch from d0eac74 to 71cf630 Compare November 13, 2026 23:02
@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 23:08
@dan-petty

Copy link
Copy Markdown
Owner Author

This PR removes supports_response_schema: true from the group deepseek-v4.1-flash-1017.

On main, that line is the last line of the model_info of deepseek-v4.1-flash-1017 (added with the group in #3145). The new group deepseek-v4.1-flash is inserted above that line, so the line now belongs to the new group, and the dated group has no supports_response_schema. Evidence on head 71cf630a1:

git show origin/fix/5564-deepseek-fallback:k8s/llm/gateway/config.yaml | sed -n 188,220p

The model_info of deepseek-v4.1-flash-1017 ends at cache_read_input_token_cost: 2.352e-09. No test reads the flag of an OpenRouter group, so the checks pass.

Fix: add supports_response_schema: true back to the model_info of deepseek-v4.1-flash-1017, and keep it on deepseek-v4.1-flash.

Found while I built #5568, which adds three OpenRouter trial groups in the same files and will rebase on this PR after it merges.

@dan-petty
dan-petty merged commit 183487d into main Nov 13, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/5564-deepseek-fallback branch November 13, 2026 23:45
@dan-petty

Copy link
Copy Markdown
Owner Author

Fixed in the amended commit: the rebase had moved supports_response_schema: true from deepseek-v4.1-flash-1017 to the new group, so the primary group lost structured replies. Both groups now set it, and test_the_deepseek_group_falls_back_to_the_undated_model_with_the_same_provider_filter asserts it for both (it fails on the previous head). Thanks to the review in #5568 for the catch.

dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.134.1](v0.134.0...v0.134.1)
(2026-11-13)


### Bug Fixes

* **k8s:** the DeepSeek gateway group gets a fallback group
([#5565](#5565))
([183487d](183487d))
* **roadmap:** eval grades counts the result lines of Job pods
([#5569](#5569))
([1eb3ea4](1eb3ea4))

---
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>
dan-petty added a commit that referenced this pull request Nov 14, 2026
A rebase in #5565 moved `supports_response_schema: true` from
`deepseek-v4.1-flash-1017` to the new fallback group
`deepseek-v4.1-flash`, so the main DeepSeek group, which every chat slot
of the Service names, no longer told LiteLLM that it takes a structured
reply. Both DeepSeek groups now set the flag, so a call that falls back
keeps its response format, and the fallback test asserts it for both
groups.

Closes #5571
Change:
`openspec/changes/archive/2026-11-13-5571-the-deepseek-group-keeps-its-structured/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): the DeepSeek gateway group gets a fallback group

1 participant