Skip to content

feat(k8s): serve deepseek-v4.1-flash-1017 via OpenRouter - #3145

Merged
dan-petty merged 4 commits into
mainfrom
feat/3144-serve-deepseek-v4-1-flash-1017-through-openrouter
Nov 2, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/3144-serve-deepseek-v4-1-flash-1017-through-openrouter

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

What changes

The LiteLLM gateway serves deepseek-v4.1-flash-1017 (openrouter/deepseek/deepseek-v4.1-flash-1017) as a direct model, with the OpenRouter key.

  • Route: one group in k8s/llm/gateway/config.yaml with its window (1048576) and the prices of the cheapest fp8 provider, because the cost map of the pinned LiteLLM image lacks the -1017 snapshot. No pool or fallback names it.
  • Key: openrouter.api_key (keyring) goes to the optional key openrouter-api-key of llm/llm-gateway-secrets through devops k8s push-secrets. The Deployment reads it as OPENROUTER_API_KEY; the gateway starts without it.
  • Route: the model name ends in :floor (cheapest provider) and the request asks for fp8 weights, as in the owner's OpenRouter link: today that is the provider at 0.05 USD input and 0.192 USD output per million tokens.
  • Data: OpenRouter picks the provider, so the group sends provider.data_collection: deny too. OpenRouter's API does not say which provider stores prompts, so this filter can skip the cheapest provider and raise the price. The README says so. A caller sets the reasoning effort.
  • Egress: the rule of feat(k8s): the LiteLLM gateway routes gemini-3.8-flash with its own API key and public egress on port 443 #3113 (TCP 443 to public addresses) already covers openrouter.ai.
  • Docs and tests: k8s/README.md, SECURITY.md rule 12, the secret table, and the hosted-group check with the new provider.

Why

The owner has an OpenRouter key and wants this model for evaluation and as a cheaper hosted model (#3144).

Verification

  • A LiteLLM v1.103.0 Router built from the group sends POST https://openrouter.ai/api/v1/chat/completions with model: deepseek/deepseek-v4.1-flash-1017:floor, the response_format schema, and provider: {quantizations: [fp8], data_collection: deny}.
  • The gateway, GPU matrix, secret, config, security and docs tests pass (6449 tests; the one failure is the known host-only test of fix(tests): a devcontainer dry-run test reads the tools of the host #3025).
  • After the merge: store the key, run devops k8s push-secrets --only llm/llm-gateway-secrets, and call the group once with the curl command in k8s/README.md.

Closes #3144

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 2, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 2, 2026 02:17
@dan-petty
dan-petty merged commit d5dc921 into main Nov 2, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/3144-serve-deepseek-v4-1-flash-1017-through-openrouter branch November 2, 2026 02:17
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.40.0](v0.39.1...v0.40.0)
(2026-11-02)


### Features

* **k8s:** serve deepseek-v4.1-flash-1017 via OpenRouter
([#3145](#3145))
([d5dc921](d5dc921)),
closes [#3144](#3144)


### Bug Fixes

* **cli:** stop with one error line in a removed working directory
([#3133](#3133))
([c4a4dbb](c4a4dbb))


### Code Refactoring

* **cli:** remove the _prepare_cmd alias and ban noqa F401 in src
([#3110](#3110))
([e40dbac](e40dbac))

---
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>
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/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): serve deepseek-v4.1-flash-1017 through OpenRouter

1 participant