Repository navigation
Description
Problem Description
The gateway group deepseek-v4.1-flash-1017 has no fallback. When its route fails, the call fails. On 2026-11-13 from about 22:10Z, the gateway logged about 35 litellm.Timeout ... OpenrouterException - A Timeout Occurred lines in 30 minutes, with No fallback model group found for lookup_groups=deepseek-v4.1-flash-1017 (a mid-stream fallback error). Three stage Jobs (#2594, #2713, #3241) failed with HTTP 504 Gateway Timeout.
The group asks OpenRouter for the floor route (the cheapest provider) with fp8 weights and data_collection: deny. The OpenRouter endpoint list at 22:40Z showed the cheapest fp8 endpoint of deepseek/deepseek-v4.1-flash-1017 (0.0784/0.2352 USD per million, the rates of the group) with status -5 and an uptime of 33% in the last 30 minutes.
Proposed Solution & Architectural Design
Owner decision (2026-11-13): "use openrouter deepseek/deepseek-v4.1-flash as a fallback".
- Add the hosted group
deepseek-v4.1-flashtok8s/llm/gateway/config.yaml:openrouter/deepseek/deepseek-v4.1-flash, with no:floor, so that OpenRouter does its own load balance across providers. Keep the same provider filter as the primary group: fp8 weights anddata_collection: deny. The privacy control does not change. - Set its
model_info: window 1,048,576 and the prices. Add the same prices to_HOSTED_GROUP_PRICES(src/devops_cli/ai/spend/pricing.py) and the group toCONST_AI_GATEWAY_HOSTED_MODELS. - Add the fallback
deepseek-v4.1-flash-1017: [deepseek-v4.1-flash]. This is a hosted group to a hosted group (feat(k8s): fall back from claude-sonnet-5-5 to deepseek-v4.1-flash-1017 #3152), with the same provider (OpenRouter) and the same model family. So the data flow of SECURITY.md item 13 does not change, but its text names one more group and one more fallback. - Update SECURITY.md item 13 and the hosted-model text in
k8s/README.md.
Acceptance Criteria
- The gateway config test proves that
deepseek-v4.1-flash-1017falls back todeepseek-v4.1-flash, that the new group is hosted, that its filters holddata_collection: denyand fp8, and that no group that is not hosted falls back to it (devops ci fail-to-pass). -
tests/ai/spend/test_hosted_group_prices.pypasses with the new group (prices equal in both places). - After the Argo CD sync and the gateway restart: one call that names
deepseek-v4.1-flashanswers, and the gateway logs a fallback for a faileddeepseek-v4.1-flash-1017call, or the fallback counter rises.
Related
#3152, #5562 (the stage Job retries a provider timeout), #5527
Activity
dan-petty commentedon Nov 13, 2026
Production calls are failing with 504 timeouts and three Jobs have already failed due to the missing fallback.Both add a fallback to the gateway config, but #3152 adds claude-sonnet-5-5 to deepseek-v4.1-flash-1017 while this adds deepseek-v4.1-flash-1017 to deepseek-v4.1-flash.devops-cli-service commentedon Nov 14, 2026
Released in v0.134.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.134.1
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 00:14 UTC