Skip to content

feat(ai): default to DeepSeek-V4.1-Flash (deepseek-flash), on dated rate cards - #1

Merged
lroolle merged 3 commits into
mainfrom
v41-flash
Sep 18, 2026
Merged

lroolle merged 3 commits into
mainfrom
v41-flash

Conversation

@lroolle

@lroolle lroolle commented Sep 18, 2026

Copy link
Copy Markdown
Member

DeepSeek-V4.1-Flash shipped 2026-09-10 as deepseek-flash (changelog 2026-09-10). V4 Flash and V4 Flash Vision Exp are retired; their names are still accepted, served by V4.1 Flash and billed at the Flash price. V4 Pro continues with billing unchanged. GET /models lists exactly deepseek-flash and deepseek-v4-pro.

What changed

  • ai.ModelFlash is deepseek-flash, so -m flash, the empty default and every fallback land on V4.1. deepseek-v4-flash and deepseek-v4-flash-vision-exp resolve to it.
  • Dated rate cards (ai/pricing.go). The catalog held one flat card from 2026-08-02; the 2026-08-16 time-of-use repricing never reached it. Now: flat, V4 (from 2026-08-16 16:00 UTC), V4.1 (from 2026-09-10 11:00 UTC), peak at 2x, weekdays only from 2026-08-22 16:00 UTC. The V4.1 instant is inferred (our docs mirror read the old card at 04:50 UTC and the new one at 11:27 UTC), and deepseek-cli and dsh-meter use the same one. Each response is priced on the card and period in force when it arrived; -models says which card and period apply now.
  • reviewer no longer forces pro. Every role runs on the parent's model. The README's new Models section cites DeepSeek's changelog for why: on the benchmarks both the 2026-09-10 and 2026-08-13 entries report, Flash scores Terminal Bench 2.1 90.6 vs 87.9, NL2Repo 65.4 vs 61.5, CyberGym 88.1 vs 83.3 and HLE with tools 63.9 vs 60.0. HLE without tools goes the other way, 36.8 vs 42.7. The section also says the committed eval baseline was recorded on V4 Flash.
  • Tripwires. cmd/deepseek-pi/claims_test.go pins the README's default-model claims (intro, usage block, models table), the table's prices and the cache-swing figure to the catalog. TestEveryRoleRunsOnTheParentModel pins the roles. Nine deliberate breaks, nine reds.

The thinking-budget trap (V4.1 can spend all of max_tokens on reasoning) does not bite here. Thinking is off unless an effort is set, and compaction's 4096-token summary call sends no effort.

Verification

  • gofmt -l . clean, go vet ./... clean, go test -race ./... all packages ok.
  • make test-live subset, ai package: 3/3 pass on deepseek-flash, including the tool round trip with thinking on (low effort, 1024 cap).
  • CLI, default model: deepseek-pi -p "Reply with exactly the word: pong" -> pong, 1593 in / 2 out · $0.0005, priced at the peak rate that was in force (Friday 06:13 UTC).

🤖 Generated with Claude Code

lroolle and others added 3 commits September 17, 2026 23:15
…ate cards

DeepSeek-V4.1-Flash shipped 2026-09-10 as `deepseek-flash`. V4 Flash and
V4 Flash Vision Exp are retired; their names still work, are served by
V4.1 Flash and bill at the Flash price. V4 Pro continues, billing
unchanged. GET /models lists exactly deepseek-flash and deepseek-v4-pro.

- ai.ModelFlash is deepseek-flash, so `-m flash`, the empty default and
  every fallback land on V4.1. The retired names resolve to it.
- The catalog held one flat card from 2026-08-02; the 2026-08-16
  time-of-use repricing never reached it. Rates are now dated cards in
  ai/pricing.go (flat, V4, V4.1 from 2026-09-10 11:00 UTC, an inferred
  instant shared with deepseek-cli and dsh-meter) with peak at 2x,
  weekdays only from 2026-08-22 16:00 UTC. A response is priced on the
  card and period in force when it arrived; `-models` says which.
- reviewer no longer forces pro: every role runs on the parent's model.
  README cites DeepSeek's changelog for why (Flash leads V4 Pro GA on
  Terminal Bench 2.1, NL2Repo, CyberGym and HLE with tools; trails on HLE
  without tools) and says the eval baseline predates V4.1.
- cmd/deepseek-pi/claims_test.go pins the README's default-model, models
  table and cache-swing claims to the catalog; a harness test pins every
  role to the parent model. Nine deliberate breaks, nine reds.

The thinking-budget trap does not bite here: thinking is off unless an
effort is set, and compaction's 4096-token summary call sends no effort.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…I does

The stream double announced "model":"deepseek-v4-flash" in message_start.
Since 2026-09-10 the API answers every flash name as deepseek-flash, and
the accumulator prices by the model in that field, so the double now
reports the current shape. A response that still says a retired name is
covered by TestRetiredFlashNamesResolveToFlash.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@lroolle
lroolle merged commit 16457f2 into main Sep 18, 2026
3 checks passed
@lroolle
lroolle deleted the v41-flash branch September 18, 2026 06:23
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.

1 participant