Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

feat(core): DeepSeek V4.1 Flash ships as `deepseek-flash` and becomes the default model (#662)

Yaowei Zheng5ec9f5993b86
diff --git a/README.md b/README.md
index 58826e49..f96d077b 100644
--- a/README.md
+++ b/README.md
@@ -218,7 +218,7 @@ cd penguin-install
The same engine, scriptable — made to be driven by agents (and agents building agents):
```bash
-penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
penguin run -m "Create hello.txt containing Hello, Penguin" # one-shot task
penguin chat # interactive REPL (/compact, /clear, /exit, Ctrl-C to interrupt)
penguin server # headless service (same API the Web App uses)
diff --git a/README.zh.md b/README.zh.md
index 0ef2b765..8e8aa9fe 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -218,7 +218,7 @@ cd penguin-install
同一引擎、可脚本化——为被 Agent 驱动而生(以及让 Agent 构建 Agent):
```bash
-penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
penguin run -m "Create hello.txt containing Hello, Penguin" # 单次任务
penguin chat # 交互式 REPL(/compact、/clear、/exit、Ctrl-C 中断)
penguin server # 无界面服务(与 Web 应用同一套 API)
diff --git a/changelog/unreleased/2026-09-10-model-catalog-deepseek-flash.md b/changelog/unreleased/2026-09-10-model-catalog-deepseek-flash.md
new file mode 100644
index 00000000..9f240f2f
--- /dev/null
+++ b/changelog/unreleased/2026-09-10-model-catalog-deepseek-flash.md
@@ -0,0 +1,91 @@
+# DeepSeek V4.1 Flash ships as `deepseek-flash` and becomes the default model
+
+- **Date:** 2026-09-10
+- **Type:** feature
+- **Scope:** `core`, `cli`, `docs`, `skills`
+- **PR:** [#662](https://github.com/Prism-Shadow/penguin-harness/pull/662)
+
+[中文版](2026-09-10-model-catalog-deepseek-flash.zh.md)
+
+DeepSeek released V4.1 Flash and names it `deepseek-flash`, without a version segment. The row
+pre-registered under the announced spelling `deepseek-v4.1-flash` is replaced by the released one,
+which now leads the `deepseek` group and is the model a new Project starts on. The same read
+brought in the resold V4.1 Flash rows on TokenDance and OpenRouter, and TokenDance's current
+promotion rates and Doubao Seed display names.
+
+## The DeepSeek group
+
+- `deepseek-flash` (**DeepSeek V4.1 Flash**) replaces the pre-registered `deepseek-v4.1-flash`:
+ a 1,000,000-token context window, image input, and the Flash series peak price CNY 0.04 / 2 / 8
+ per million tokens (cache hit / cache miss / output) on the schedule that halves every bucket
+ outside Beijing weekday 09:00–12:00 and 14:00–18:00.
+- That row is the one direct-vendor row in the group to pin a client and a base URL
+ (`client_type = "deepseek-v4"`, `base_url = "https://api.deepseek.com"`). AgentHub 0.4.11 routes
+ DeepSeek on the raw substring `deepseek-v4` and looks at nothing else, so the released bare id
+ matches no client on its own. The pin comes off once AgentHub routes the name itself.
+- `deepseek-v4-flash` is now marked as reading images. DeepSeek retired the model on 2026-09-10 and
+ serves the id from V4.1 Flash at the Flash price, so what answers there is a model with image
+ input. **AgentHub 0.4.11 still refuses image parts for this bare id** — its DeepSeek client
+ carries a text-only deny-list written before the retirement — so until AgentHub relaxes that list
+ an image sent to `deepseek-v4-flash` is rejected by the client rather than by DeepSeek. Send
+ images to `deepseek-flash` meanwhile.
+- `deepseek-v4-flash-vision-exp` was retired on the same announcement and is likewise served from
+ V4.1 Flash; its image-input flag was already set and is unchanged.
+- `deepseek-v4-pro` keeps the V4 Pro list price CNY 0.3 / 9 / 27 and its text-only flag. From 12:00
+ Beijing on 2026-09-14, and until V4.1 Pro is released, DeepSeek routes requests for that id to
+ V4.1 Flash and bills them at the V4.1 Flash price; the row records what the vendor publishes for
+ `deepseek-v4-pro` itself, so it is left as it is.
+
+## The default model
+
+- A new Project's `default_model` is now `deepseek` / `deepseek-flash`. Its preset entry carries
+ the row's pinned client and endpoint, so the default is routable exactly as written.
+- The documented first-run commands moved with it: `README.md`, `README.zh.md`, and the CLI, SDK
+ and Docker quickstarts in both languages now pass `--model-id deepseek-flash`, as do the
+ `default_model` line and the `[[models]]` sample it names in the configuration and models
+ documents.
+
+## The CLI inherits a preset's pin
+
+`penguin config model add` now reads the built-in catalog row for the exact
+`(provider, model_id)` pair it is given, and a **new** entry inherits that row's `client_type` and
+`base_url` before the group rule is consulted. Without it,
+`penguin config model add --provider deepseek --model-id deepseek-flash` into a Project that does
+not already hold the row would write an entry AgentHub cannot route. An explicit `--client-type` or
+`--base-url` still wins, and an existing entry is never rewritten.
+
+## TokenDance
+
+- `deepseek-v4.1-flash` (**DeepSeek V4.1 Flash**) joins the group: a 1,000,000-token context
+ window and image input per the gateway's public catalog API, at CNY 0.04 / 2 / 8.
+- Both DeepSeek Flash rows sold here — the new one and `deepseek-v4-flash-vision-exp` — follow the
+ vendor's own peak/off-peak schedule rather than a flat gateway discount. `vision-exp` moved from
+ a flat CNY 0.05 / 1.5 / 4.5 to the peak tier CNY 0.04 / 2 / 8 with the schedule declared.
+- Promotion rates as of 2026-09-10, list prices unchanged: `deepseek-v4-flash-0731` and
+ `deepseek-v4-pro-0813` are 20% off (from 50%), `glm-5.3-flash` is 10% off (its 50% ran through
+ 2026-09-09 24:00). `kimi-k3` stays at 20%, `glm-5.3` and `qwen3.8-max` at 10%, and the three
+ Doubao Seed rows at 50%.
+- The three Seed rows are displayed under the seller's own spelling: **Seed-2.1-Pro**,
+ **Seed-2.1-Turbo**, **Seed-Evolving**.
+
+## OpenRouter
+
+`deepseek/deepseek-v4.1-flash` joins the group at the head of the DeepSeek run: a 1,048,576-token
+context window, image input, and USD 0.006 / 0.3 / 1.2 per million tokens. That base price is the
+peak tier — the listing's own `pricing.overrides` bill exactly half on weekends and outside weekday
+UTC 01:00–04:00 / 06:00–10:00, which are DeepSeek's Beijing windows — so the row stores the peak
+figures and declares the shared schedule, as the direct row does.
+
+The stale sentence in the `deepseek/deepseek-v4-flash-vision-exp` row comment claiming it stored
+the off-peak tier was corrected: the listing carries no overrides, and the row keeps the flat price
+the API publishes.
+
+## Existing Projects
+
+Presets are copied into `.project_config.toml` when a Project is created and nothing rewrites them
+afterwards, so nothing here reaches an existing Project on its own. The models page's **sync
+presets** appends `deepseek-flash` and updates catalog-owned fields on the rows that moved; it
+never deletes, so a dev-data Project created while `deepseek-v4.1-flash` was pre-registered keeps
+that stale row until it is removed by hand, and it never touches the stored default — an existing
+Project keeps whatever model it was already starting sessions on. Because prices moved and rows
+were added, every existing Project shows the preset-update badge until it syncs or dismisses it.
diff --git a/changelog/unreleased/2026-09-10-model-catalog-deepseek-flash.zh.md b/changelog/unreleased/2026-09-10-model-catalog-deepseek-flash.zh.md
new file mode 100644
index 00000000..d7ffa661
--- /dev/null
+++ b/changelog/unreleased/2026-09-10-model-catalog-deepseek-flash.zh.md
@@ -0,0 +1,78 @@
+# DeepSeek V4.1 Flash 以 `deepseek-flash` 发布,并成为默认模型
+
+- **Date:** 2026-09-10
+- **Type:** feature
+- **Scope:** `core`, `cli`, `docs`, `skills`
+- **PR:** [#662](https://github.com/Prism-Shadow/penguin-harness/pull/662)
+
+[English](2026-09-10-model-catalog-deepseek-flash.md)
+
+DeepSeek 已发布 V4.1 Flash,模型名定为不带版本段的 `deepseek-flash`。此前按发布公告的拼写预先登记
+的 `deepseek-v4.1-flash` 条目被正式条目取代,后者现居 `deepseek` 分组首位,也是新建 Project 的起始
+模型。同一次读取还带入了 TokenDance 与 OpenRouter 上转售的 V4.1 Flash 条目,以及 TokenDance 当前的
+促销折扣率与 Doubao Seed 的展示名。
+
+## DeepSeek 分组
+
+- `deepseek-flash`(**DeepSeek V4.1 Flash**)取代预先登记的 `deepseek-v4.1-flash`:1,000,000 Token
+ 上下文窗口、支持图像输入,价格取 Flash 系列高峰档 CNY 0.04 / 2 / 8(缓存命中 / 缓存未命中 / 输出,
+ 每百万 Token),并沿用在北京时间周一至周五 9:00–12:00、14:00–18:00 之外各档减半的时段规则。
+- 该条目是分组中唯一固定了 client 与 Base URL 的直连条目(`client_type = "deepseek-v4"`、
+ `base_url = "https://api.deepseek.com"`)。AgentHub 0.4.11 只按原始子串 `deepseek-v4` 路由
+ DeepSeek,不看别的,因此正式发布的这个裸 id 自身匹配不到任何 client。待 AgentHub 能直接路由该名称
+ 后,这两个字段即可移除。
+- `deepseek-v4-flash` 现标记为支持图像输入。DeepSeek 已于 2026-09-10 下线该模型,并改由 V4.1 Flash
+ 按 Flash 价承接这个 id,因此实际应答的是一个能读图的模型。**AgentHub 0.4.11 仍然拒绝该裸 id 的图像
+ 部件**——其 DeepSeek 客户端带有一份写在下线之前的 text-only 拒绝名单——因此在 AgentHub 放宽该名单
+ 之前,发往 `deepseek-v4-flash` 的图片会被客户端拒绝,而不是被 DeepSeek 拒绝。在此期间请把图片发往
+ `deepseek-flash`。
+- `deepseek-v4-flash-vision-exp` 在同一份公告中下线,同样由 V4.1 Flash 承接;它的图像输入标记本就为
+ 真,未作改动。
+- `deepseek-v4-pro` 保持 V4 Pro 牌价 CNY 0.3 / 9 / 27 与纯文本标记。自北京时间 2026-09-14 12:00 起、
+ 直到 V4.1 Pro 发布为止,DeepSeek 会把该 id 的请求全部路由到 V4.1 Flash 并按 V4.1 Flash 价计费;本
+ 条目记录的是厂商为 `deepseek-v4-pro` 自身公布的内容,因此维持原样。
+
+## 默认模型
+
+- 新建 Project 的 `default_model` 改为 `deepseek` / `deepseek-flash`。它的预置条目带有该目录条目固定
+ 的 client 与 endpoint,因此默认模型照原样即可路由。
+- 文档中的首次运行命令随之调整:`README.md`、`README.zh.md`,以及中英两版的 CLI、SDK、Docker 快速
+ 上手都改为传入 `--model-id deepseek-flash`;配置文档与模型文档中的 `default_model` 行及其指向的
+ `[[models]]` 示例同样如此。
+
+## CLI 继承预置的固定项
+
+`penguin config model add` 现在会按传入的 `(provider, model_id)` 精确读取内置目录条目,**新增**条目
+会先继承该条目的 `client_type` 与 `base_url`,再退回分组规则。否则,向尚未持有该条目的 Project 执行
+`penguin config model add --provider deepseek --model-id deepseek-flash`,写下的就是一条 AgentHub
+无法路由的条目。显式的 `--client-type` 或 `--base-url` 仍然优先,已存在的条目也绝不会被改写。
+
+## TokenDance
+
+- `deepseek-v4.1-flash`(**DeepSeek V4.1 Flash**)加入该分组:按该网关公开的目录 API,1,000,000
+ Token 上下文窗口、支持图像输入,价格 CNY 0.04 / 2 / 8。
+- 这里售卖的两条 DeepSeek Flash 条目——新条目与 `deepseek-v4-flash-vision-exp`——都沿用厂商自己的峰谷
+ 时段规则,而不是网关的固定折扣。`vision-exp` 由固定的 CNY 0.05 / 1.5 / 4.5 改为高峰档
+ CNY 0.04 / 2 / 8,并声明该时段规则。
+- 截至 2026-09-10 的促销折扣率(牌价不变):`deepseek-v4-flash-0731` 与 `deepseek-v4-pro-0813` 为八折
+ (原五折),`glm-5.3-flash` 为九折(其五折已于 2026-09-09 24:00 结束)。`kimi-k3` 仍为八折,
+ `glm-5.3` 与 `qwen3.8-max` 仍为九折,三条 Doubao Seed 条目仍为五折。
+- 三条 Seed 条目改用卖家自己的写法展示:**Seed-2.1-Pro**、**Seed-2.1-Turbo**、**Seed-Evolving**。
+
+## OpenRouter
+
+`deepseek/deepseek-v4.1-flash` 加入该分组,位于 DeepSeek 一段的开头:1,048,576 Token 上下文窗口、
+支持图像输入,每百万 Token USD 0.006 / 0.3 / 1.2。这个基础价就是高峰档——该条目自身的
+`pricing.overrides` 会在周末以及工作日 UTC 01:00–04:00 / 06:00–10:00 之外正好按半价计费,也就是
+DeepSeek 的那套北京时间窗口——因此条目落盘高峰价并声明同一套时段规则,与直连条目一致。
+
+`deepseek/deepseek-v4-flash-vision-exp` 条目注释中「价格取空闲档」的过时说法已更正:该条目的接口列表
+中并无 overrides,条目保留 API 公布的固定价格。
+
+## 存量 Project
+
+预置模型在 Project 创建时复制进 `.project_config.toml`,此后不会被改写,因此本次改动不会自行到达存量
+Project。模型页的**同步预置**会追加 `deepseek-flash`,并更新发生变动条目中由目录掌管的字段;它不做
+删除,因此在 `deepseek-v4.1-flash` 处于预先登记状态期间创建的 dev-data Project 会一直保留那条过时
+条目,需手工移除;它也不触碰已存的默认模型——存量 Project 仍按原先的模型开启会话。由于价格发生变化
+且新增了条目,存量 Project 都会看到预置更新角标,直到它同步或忽略为止。
diff --git a/packages/cli/src/commands/config.ts b/packages/cli/src/commands/config.ts
index 2edc1d5e..db8bb5b4 100644
--- a/packages/cli/src/commands/config.ts
+++ b/packages/cli/src/commands/config.ts
@@ -16,8 +16,10 @@
* which together with `--provider` forms a `(provider, model_id)` paired reference —
* **no string concatenation is ever performed**. `--provider` is **required** on every model
* subcommand that names an entry: the group is never guessed, so `--api-key` can never land on
- * a vendor the user did not name. For `model add`, a new entry's client_type defaults according
- * to the group's semantics (not set for first-party vendors; openai-chat for custom /
+ * a vendor the user did not name. For `model add`, a new entry's
+ * client_type and base_url are inherited from the built-in catalog row for that exact
+ * (provider, model_id) pair when one pins them, and otherwise default according to the
+ * group's semantics (not set for first-party vendors; openai-chat for custom /
* self-hosted groups / gateways, with the gateway's endpoint base URL pre-filled). For `model default`
* / `model vision`, core validation raises an error when the reference is not
* found in models; `model remove` reports the same condition itself, since removal is
@@ -155,22 +157,29 @@ export function registerConfigCommand(program: Command, t: Messages): void {
const ref: ModelRef = { provider, model_id: modelId };
const before = await loadProjectConfig(root, opts.projectId);
const existed = getModel(before, ref) !== undefined;
- // client_type default rule, only injected for new entries (updating an
- // existing entry never overrides an explicit config): a group that pins a protocol
- // (vLLM) gets that pin, whatever the id; otherwise not set for first-party vendor
- // groups (AgentHub auto-routes by upstream id, with env fallback keyed on id), and
- // openai-chat for custom / user-defined / gateway groups, with the gateway's endpoint
- // base URL pre-filled as well. (An explicit --client-type is passed through; core's
- // addModel normalizes the deprecated bare "openai" alias.)
+ // client_type / base_url default rule, only injected for new entries (updating an
+ // existing entry never overrides an explicit config). The catalog row for this exact
+ // (provider, model_id) pair is consulted first: a preset that pins a protocol and an
+ // endpoint does so because its own id would not route otherwise — MiniMax M3 and the
+ // direct DeepSeek `deepseek-flash` — and an entry added by hand must inherit that pin
+ // or it is written unroutable. Failing a catalog row, the group decides: a group that
+ // pins a protocol (vLLM) gets that pin, whatever the id; otherwise not set for
+ // first-party vendor groups (AgentHub auto-routes by upstream id, with env fallback
+ // keyed on id), and openai-chat for custom / user-defined / gateway groups, with the
+ // gateway's endpoint base URL pre-filled as well. (An explicit --client-type /
+ // --base-url is passed through and outranks both; core's addModel normalizes the
+ // deprecated bare "openai" alias.)
const pInfo = providerInfo(provider);
+ const catalogEntry = catalogEntryFor(provider, modelId);
const openAiDefault =
pInfo === undefined || pInfo.id === "custom" || pInfo.gatewayBaseUrl !== undefined;
const groupClientType = providerClientType(provider);
- const defaultClientType = groupClientType ?? (openAiDefault ? "openai-chat" : undefined);
+ const defaultClientType =
+ catalogEntry?.clientType ?? groupClientType ?? (openAiDefault ? "openai-chat" : undefined);
+ const defaultBaseUrl = catalogEntry?.baseUrl ?? pInfo?.gatewayBaseUrl;
const clientType: string | undefined =
opts.clientType ?? (!existed ? defaultClientType : undefined);
- const baseUrl: string | undefined =
- opts.baseUrl ?? (!existed ? pInfo?.gatewayBaseUrl : undefined);
+ const baseUrl: string | undefined = opts.baseUrl ?? (!existed ? defaultBaseUrl : undefined);
// Only collect explicitly given price fields, letting addModel merge them with the existing pricing per-field.
const pricing: Partial<ModelPricing> = {};
if (opts.priceCacheRead !== undefined) pricing.cache_read = opts.priceCacheRead;
diff --git a/packages/cli/test/config-model.test.ts b/packages/cli/test/config-model.test.ts
index f963f6e0..f267d052 100644
--- a/packages/cli/test/config-model.test.ts
+++ b/packages/cli/test/config-model.test.ts
@@ -233,6 +233,77 @@ describe("penguin config model add/list (--root plus provider / model_id stored
expect(by("mylab", "special-1").client_type).toBe("verbatim-type");
});
+ it("a new entry naming a catalog row inherits that row's pinned client_type and base_url; --client-type still wins", async () => {
+ // deepseek-flash is a direct-vendor preset that pins the deepseek-v4 client and the
+ // vendor endpoint, because AgentHub routes DeepSeek on a substring the bare id lacks.
+ // Removing it first is the case that matters: re-adding it by hand into a Project that
+ // no longer holds the row must not write an entry AgentHub would refuse to route.
+ await runModel([
+ "remove",
+ "--model-id",
+ "deepseek-flash",
+ "--provider",
+ "deepseek",
+ "--root",
+ tmpRoot,
+ ]);
+ await runModel([
+ "add",
+ "--model-id",
+ "deepseek-flash",
+ "--provider",
+ "deepseek",
+ "--root",
+ tmpRoot,
+ ]);
+ // The same id under a group that does not sell it has no catalog row, so the group rule
+ // still decides: a gateway gets openai-chat and its own endpoint, not DeepSeek's.
+ await runModel([
+ "add",
+ "--model-id",
+ "deepseek-flash",
+ "--provider",
+ "openrouter",
+ "--root",
+ tmpRoot,
+ ]);
+ // An explicit --client-type outranks the inherited pin, and so does --base-url.
+ await runModel([
+ "remove",
+ "--model-id",
+ "MiniMax-M3",
+ "--provider",
+ "minimax",
+ "--root",
+ tmpRoot,
+ ]);
+ await runModel([
+ "add",
+ "--model-id",
+ "MiniMax-M3",
+ "--provider",
+ "minimax",
+ "--client-type",
+ "openai-chat",
+ "--base-url",
+ "https://proxy.example/v1",
+ "--root",
+ tmpRoot,
+ ]);
+
+ const parsed = parseToml(
+ await fs.readFile(projectConfigPath(tmpRoot, DEFAULT_PROJECT_ID), "utf8"),
+ ) as { models: Array<Record<string, unknown>> };
+ const by = (p: string, id: string) =>
+ parsed.models.find((m) => m.provider === p && m.model_id === id)!;
+ expect(by("deepseek", "deepseek-flash").client_type).toBe("deepseek-v4");
+ expect(by("deepseek", "deepseek-flash").base_url).toBe("https://api.deepseek.com");
+ expect(by("openrouter", "deepseek-flash").client_type).toBe("openai-chat");
+ expect(by("openrouter", "deepseek-flash").base_url).toBe("https://openrouter.ai/api/v1");
+ expect(by("minimax", "MiniMax-M3").client_type).toBe("openai-chat");
+ expect(by("minimax", "MiniMax-M3").base_url).toBe("https://proxy.example/v1");
+ });
+
it("--max-tokens round-trips to the entry's max_tokens; 0/negative/non-number are rejected before anything is written", async () => {
const add = await runModel([
"add",
diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.ts
index e1456bc5..72ac5435 100644
--- a/packages/core/src/state/model-catalog.ts
+++ b/packages/core/src/state/model-catalog.ts
@@ -13,8 +13,10 @@
* effective 2026-09-10; the GPT-6 Astra rows (direct + OpenRouter): 2026-09-09; the
* pre-registered deepseek-v4.1-flash row: 2026-09-09, from DeepSeek's release announcement;
* the whole Gemini 3.x line-up, direct + OpenRouter — the 3.6 / 3.7 / 3.8 Flash launch
- * discounts declared, every other row re-read and unchanged: 2026-09-09 — per each
- * provider's docs).
+ * discounts declared, every other row re-read and unchanged: 2026-09-09; the direct DeepSeek
+ * group (V4.1 Flash released as `deepseek-flash`, the two V4 Flash ids retired into it), the
+ * OpenRouter and TokenDance V4.1 Flash rows, and TokenDance's running promotions plus its
+ * Doubao Seed display names: 2026-09-10 — per each provider's docs).
* Docs: packages/docs/content/models.{zh,en}.md (site path /docs/models) documents the
* provider groups and credential resolution described here.
*
@@ -55,8 +57,10 @@
* - `openai-chat-vllm-adapter` for the vLLM group, which is Chat Completions on the wire
* but maps the thinking level onto the served model's own chat template
* (VLLM_CLIENT_TYPE).
- * The MiniMax M3 preset pins AgentHub's first-party `minimax-m3` protocol and direct API
- * endpoint.
+ * Two direct-vendor rows pin anyway, because their own id does not route: the MiniMax M3
+ * preset pins AgentHub's first-party `minimax-m3` protocol and direct API endpoint, and
+ * `deepseek-flash` pins `deepseek-v4` because AgentHub 0.4.11 routes DeepSeek on that
+ * substring alone and the released V4.1 Flash id no longer carries it.
*
* App attribution (`attributionHeaders`, bottom of this file) rides alongside the protocol
* pins: it names PenguinHarness to the gateways that read such a header, keyed on the
@@ -183,6 +187,7 @@ const QWEN_PAYG_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1";
const FIREWORKS_BASE_URL = "https://api.fireworks.ai/inference/v1";
const TOKENDANCE_BASE_URL = "https://tokendance.space/gateway/v1";
const MINIMAX_BASE_URL = "https://api.minimax.io/v1";
+const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
/**
* Provider list (web model page groups in this order BY DEFAULT — a user's dragged
@@ -468,45 +473,54 @@ export function effectivePricing(
* takes the group sequence from MODEL_PROVIDERS.
*/
export const MODEL_CATALOG: ModelCatalogEntry[] = [
- // -- DeepSeek (official CNY pricing: cache hit / cache miss / output). Prices re-read
- // 2026-09-08 from api-docs.deepseek.com/quick_start/pricing, covering the official price
- // adjustment effective 2026-09-10 12:00 Beijing: the V4 Flash rows (flash and
- // flash-vision-exp) are on the peak tier CNY 0.04 / 2 / 8, exactly double the off-peak
- // 0.02 / 1 / 4; deepseek-v4-pro sits outside that adjustment, at 0.3 / 9 / 27. The rows
- // store the PEAK tier and declare DEEPSEEK_OFF_PEAK, which halves every bucket outside
- // Beijing weekday 09:00-12:00 and 14:00-18:00 — so both tiers are billed at the rate
- // actually in force, rather than one of them being approximated by the other.
- // deepseek-v4.1-flash leads the group ahead of its launch: DeepSeek has announced it and
- // does not serve it yet, and it carries the V4 Flash series price and schedule. --
- {
- // Announced for release after 2026-09-10 and not served yet as of 2026-09-09; the row is
- // registered ahead of the launch. The announcement gives it image input by default, and
- // the V4 Flash series price: the peak tier is stored and the schedule declared, exactly
- // like its siblings. The context window is assumed equal to deepseek-v4-flash until the
- // official model page lists one. Image parts reach it through @prismshadow/agenthub
- // ^0.4.11, whose DeepSeek client forwards them to every id except the text-only
- // deepseek-v4-flash and deepseek-v4-pro (0.4.10 forwarded them to ids containing
- // "vision" alone).
- modelId: "deepseek-v4.1-flash",
+ // -- DeepSeek (official CNY pricing: cache hit / cache miss / output). Prices and model
+ // names re-read 2026-09-10 from api-docs.deepseek.com/quick_start/pricing: the Flash rows
+ // are on the peak tier CNY 0.04 / 2 / 8, exactly double the off-peak 0.02 / 1 / 4;
+ // deepseek-v4-pro sits outside that tier, at 0.3 / 9 / 27. The rows store the PEAK tier
+ // and declare DEEPSEEK_OFF_PEAK, which halves every bucket outside Beijing weekday
+ // 09:00-12:00 and 14:00-18:00 — so both tiers are billed at the rate actually in force,
+ // rather than one of them being approximated by the other.
+ // V4.1 Flash ships under the bare name `deepseek-flash` and leads the group; the two V4
+ // Flash ids below are retired names the vendor still accepts and now serves from V4.1
+ // Flash at the Flash price. --
+ {
+ // DeepSeek's pricing page names this model `deepseek-flash` (model version
+ // DeepSeek-V4.1-Flash, released as of the 2026-09-10 read): 1M context, image input, and
+ // the Flash series peak price and off-peak schedule.
+ // The id carries no `deepseek-v4` substring, and that substring is the only thing
+ // AgentHub 0.4.11's AutoLLMClient routes DeepSeek on (it matches raw substrings against
+ // `client_type || model_id`), so the bare name would be rejected as unsupported. This
+ // direct-vendor row therefore pins the `deepseek-v4` client and inlines the vendor
+ // endpoint — the same shape the MiniMax row uses, and the one exception to direct rows
+ // leaving both unset. Drop the two fields once AgentHub routes the bare id.
+ modelId: "deepseek-flash",
displayName: "DeepSeek V4.1 Flash",
provider: "deepseek",
contextWindow: 1000000,
pricing: cny(0.04, 2, 8),
offPeakDiscount: DEEPSEEK_OFF_PEAK,
supportsVision: true,
+ clientType: "deepseek-v4",
+ baseUrl: DEEPSEEK_BASE_URL,
},
{
+ // Retired on 2026-09-10: DeepSeek still accepts the id and serves it from V4.1 Flash at
+ // the Flash price, so what answers here reads images — hence the flag. AgentHub 0.4.11's
+ // DeepSeek client still refuses image parts for this bare id (its text-only deny-list
+ // /^deepseek-v4-(flash|pro)(-\d{4})?$/ predates the retirement), so until AgentHub
+ // relaxes that list an image sent to this id is rejected by the client, not by DeepSeek.
modelId: "deepseek-v4-flash",
displayName: "DeepSeek V4 Flash",
provider: "deepseek",
contextWindow: 1000000,
pricing: cny(0.04, 2, 8),
offPeakDiscount: DEEPSEEK_OFF_PEAK,
- supportsVision: false,
+ supportsVision: true,
},
{
- // The experimental vision revision of V4 Flash (added 2026-08-21): image input on top of
- // the base model's text capabilities, at the same published price.
+ // The experimental vision revision of V4 Flash (added 2026-08-21), retired on the same
+ // 2026-09-10 announcement: the id is still accepted and served from V4.1 Flash at the
+ // Flash price. Image input was already the point of this row, and it still holds.
modelId: "deepseek-v4-flash-vision-exp",
displayName: "DeepSeek V4 Flash Vision Exp",
provider: "deepseek",
@@ -516,6 +530,11 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
supportsVision: true,
},
{
+ // From 12:00 Beijing on 2026-09-14 and until V4.1 Pro is released, DeepSeek routes every
+ // request for this id to V4.1 Flash and bills it at the V4.1 Flash price. The row keeps
+ // the V4 Pro list price and its text-only flag: the id, the model behind it and the
+ // billing are the vendor's to change back, and this catalog records what it publishes
+ // for deepseek-v4-pro itself.
modelId: "deepseek-v4-pro",
displayName: "DeepSeek V4 Pro",
provider: "deepseek",
@@ -610,6 +629,22 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
clientType: "openai-chat",
baseUrl: OPENROUTER_BASE_URL,
},
+ {
+ // Listed 2026-09-10 from the models API: the base price is the PEAK tier and
+ // `pricing.overrides` bill exactly half on weekends and outside weekday UTC 01:00-04:00 /
+ // 06:00-10:00 — DeepSeek's own Beijing windows — so the row stores the peak price and
+ // declares DEEPSEEK_OFF_PEAK, exactly as the direct row does. Context window and image
+ // input from the same listing.
+ modelId: "deepseek/deepseek-v4.1-flash",
+ displayName: "DeepSeek V4.1 Flash",
+ provider: "openrouter",
+ contextWindow: 1048576,
+ pricing: usd(0.006, 0.3, 1.2),
+ offPeakDiscount: DEEPSEEK_OFF_PEAK,
+ supportsVision: true,
+ clientType: "openai-chat",
+ baseUrl: OPENROUTER_BASE_URL,
+ },
{
modelId: "deepseek/deepseek-v4-flash-0731",
displayName: "DeepSeek V4 Flash 0731",
@@ -633,8 +668,9 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
{
// DeepSeek serves this one alone on OpenRouter, so the stored rates are its own published
// USD list ($0.22 / $0.66 / $0.007 cache read), and the context window is that endpoint's
- // 1,048,576. Like the direct group, the price is the OFF-PEAK tier: the models API exposes
- // the peak windows as `pricing.overrides` billing exactly double.
+ // 1,048,576. The row keeps that flat price as the API lists it: as of the 2026-09-10 read
+ // the listing carries no `pricing.overrides`, so unlike the deepseek-v4.1-flash row above
+ // there is no peak/off-peak split to record here.
modelId: "deepseek/deepseek-v4-flash-vision-exp",
displayName: "DeepSeek V4 Flash Vision Exp",
provider: "openrouter",
@@ -1218,21 +1254,24 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
},
// -- TokenDance (gateway: OpenAI-compatible protocol, preset base URL). Context windows,
// vision flags and supported protocols from the public catalog API (GET
- // https://tokendance.space/gateway/v1/models, no credential required; re-read 2026-08-28);
+ // https://tokendance.space/gateway/v1/models, no credential required; re-read 2026-09-10);
// prices are the gateway's own CNY rates from each model's detail page, read 2026-08-25
- // (the detail pages need a signed-in session, so they cannot be re-read anonymously).
- // TokenDance publishes an input price and a cache-hit price with no separate cache-write
- // fee, so cache_write carries the input price.
+ // and last confirmed by the seller 2026-09-10 (the detail pages need a signed-in session,
+ // so they cannot be re-read anonymously). TokenDance publishes an input price and a
+ // cache-hit price with no separate cache-write fee, so cache_write carries the input price.
//
// Discounts: every row here stores the official LIST price, the convention of the two Qwen
// groups below, and a promoted row declares its rate in `discount` rather than having its
// price rewritten — a promotion that lapses is then one field to delete, with the rate to
// return to still on the row. effectivePricing() applies it and presetModelEntries writes
// that billed rate into a Project, so the cost center charges what the gateway charges.
- // Nine rows are promoted: deepseek-v4-flash-0731, deepseek-v4-pro-0813, glm-5.3-flash and
- // the three Doubao Seed rows (seed-2.1-pro, seed-2.1-turbo, seed-evolving) at 50% off,
- // kimi-k3 at 20%, glm-5.3 and qwen3.8-max at 10%. The rest carry no discount, so for them
- // list price and billed rate coincide.
+ // Nine rows are promoted (rates re-confirmed 2026-09-10): deepseek-v4-flash-0731,
+ // deepseek-v4-pro-0813 and kimi-k3 at 20% off; glm-5.3, glm-5.3-flash and qwen3.8-max at
+ // 10%; the three Doubao Seed rows (seed-2.1-pro, seed-2.1-turbo, seed-evolving) at 50%.
+ // Two more rows — deepseek-v4.1-flash and deepseek-v4-flash-vision-exp — carry no flat
+ // discount at all and instead follow the vendor's own peak/off-peak schedule
+ // (DEEPSEEK_OFF_PEAK), storing the peak price the way the direct DeepSeek rows do. The
+ // rest carry neither, so for them list price and billed rate coincide.
//
// A running promotion usually also shows up without a credential: the catalog API opens
// such a model's `description` with a bracketed 限时 ("limited-time") tag, so the same
@@ -1245,17 +1284,23 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
provider: "tokendance",
contextWindow: 1048576,
pricing: cny(0.1, 3, 9),
- discount: 0.5,
+ discount: 0.2,
supportsVision: false,
clientType: "openai-chat",
baseUrl: TOKENDANCE_BASE_URL,
},
{
+ // Both DeepSeek Flash rows sold here follow the vendor's own peak/off-peak schedule
+ // rather than a flat gateway discount (seller's quote 2026-09-10): the row stores the
+ // peak tier CNY 0.04 / 2 / 8 and declares DEEPSEEK_OFF_PEAK, which halves every bucket
+ // outside Beijing weekday 09:00-12:00 and 14:00-18:00 — see the deepseek-v4.1-flash row
+ // below, priced identically.
modelId: "deepseek-v4-flash-vision-exp",
displayName: "DeepSeek V4 Flash Vision Exp",
provider: "tokendance",
contextWindow: 1000000,
- pricing: cny(0.05, 1.5, 4.5),
+ pricing: cny(0.04, 2, 8),
+ offPeakDiscount: DEEPSEEK_OFF_PEAK,
supportsVision: true,
clientType: "openai-chat",
baseUrl: TOKENDANCE_BASE_URL,
@@ -1266,11 +1311,28 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
provider: "tokendance",
contextWindow: 1000000,
pricing: cny(0.3, 9, 27),
- discount: 0.5,
+ discount: 0.2,
supportsVision: false,
clientType: "openai-chat",
baseUrl: TOKENDANCE_BASE_URL,
},
+ {
+ // Listed 2026-09-10; the dotted id is the seller's spelling of the model DeepSeek serves
+ // directly as `deepseek-flash`. 1M context and native multimodality from the catalog
+ // API. Priced like the vision-exp row above: the peak tier, on the vendor's own
+ // schedule, no flat gateway discount (seller's quote 2026-09-10). Unlike the direct row
+ // this one needs no DeepSeek-specific pin — it is reached through this group's generic
+ // openai-chat client, which forwards image_url parts.
+ modelId: "deepseek-v4.1-flash",
+ displayName: "DeepSeek V4.1 Flash",
+ provider: "tokendance",
+ contextWindow: 1000000,
+ pricing: cny(0.04, 2, 8),
+ offPeakDiscount: DEEPSEEK_OFF_PEAK,
+ supportsVision: true,
+ clientType: "openai-chat",
+ baseUrl: TOKENDANCE_BASE_URL,
+ },
{
modelId: "glm-5.3",
displayName: "GLM-5.3",
@@ -1287,12 +1349,16 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
// openai-chat client forwards image_url parts, so image input works on this path. Its
// supported_protocols is openai:chat-completions alone, so the openai-chat pin is the
// only shape this id serves.
+ //
+ // The 50% promotion this row used to carry ran through 2026-09-09 24:00 (the catalog
+ // API's own description said so) and has been replaced by 10% off; the list price is
+ // unchanged, only the `discount` fraction moved.
modelId: "glm-5.3-flash",
displayName: "GLM-5.3 Flash",
provider: "tokendance",
contextWindow: 1000000,
pricing: cny(0.23, 0.8, 2.8),
- discount: 0.5,
+ discount: 0.1,
supportsVision: true,
clientType: "openai-chat",
baseUrl: TOKENDANCE_BASE_URL,
@@ -1371,8 +1437,11 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
// recorded is the one the seller confirmed. seed-2.1-pro and seed-2.1-turbo also list
// openai:responses, so their openai-chat pin is the group's convention rather than the
// only shape they serve; seed-evolving lists chat-completions alone.
+ //
+ // Display names are the seller's own, as the catalog API spells them (re-read
+ // 2026-09-10): Seed-2.1-Pro, Seed-2.1-Turbo, Seed-Evolving.
modelId: "seed-2.1-pro",
- displayName: "Doubao Seed 2.1 Pro",
+ displayName: "Seed-2.1-Pro",
provider: "tokendance",
contextWindow: 256000,
pricing: cny(1.2, 6, 30),
@@ -1383,7 +1452,7 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
},
{
modelId: "seed-2.1-turbo",
- displayName: "Doubao Seed 2.1 Turbo",
+ displayName: "Seed-2.1-Turbo",
provider: "tokendance",
contextWindow: 256000,
pricing: cny(0.6, 3, 15),
@@ -1397,7 +1466,7 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
// under one stable id — the same model as seed-2.1-pro at the time of reading — and
// the seller prices it the same.
modelId: "seed-evolving",
- displayName: "Doubao Seed Evolving",
+ displayName: "Seed-Evolving",
provider: "tokendance",
contextWindow: 256000,
pricing: cny(1.2, 6, 30),
@@ -2042,6 +2111,11 @@ export function resolveModelEnv(modelId: string, clientType?: string): ModelEnvI
if (t === "minimax-m3" && modelId.toLowerCase() === "minimax-m3") {
return env("MINIMAX");
}
+ // AgentHub 0.4.11 routes DeepSeek on this substring alone, so the released V4.1 Flash id
+ // `deepseek-flash` matches nothing here and stays unroutable on its own — which is exactly
+ // why its catalog row pins client_type "deepseek-v4" and lands on this branch instead.
+ // Mirroring AgentHub is the contract; do not widen the test to the bare name until
+ // AgentHub itself does.
if (t.includes("deepseek-v4")) return env("DEEPSEEK");
// agenthub 0.4.2's generic Anthropic Messages protocol client reads the ANTHROPIC_* pair.
// Order mirrors AutoLLMClient: ant-messages before the openai substring match.
diff --git a/packages/core/src/state/project-config.ts b/packages/core/src/state/project-config.ts
index 97dbc1bd..1cbe867e 100644
--- a/packages/core/src/state/project-config.ts
+++ b/packages/core/src/state/project-config.ts
@@ -205,13 +205,16 @@ export interface ProjectConfig {
*/
export function defaultProjectConfig(): ProjectConfig {
return {
- // The vision revision rather than the base model: it is the same context window at the
- // same published price, with image input on top — a strict superset, so defaulting to the
- // text-only sibling only meant a new Project could not read a pasted screenshot until
- // someone noticed why. A Project's default is copied in at creation and owned by it from
- // then on, so this reaches new Projects alone; an existing one keeps whatever it stored,
- // and "sync presets" never touches the stored default.
- default_model: { provider: "deepseek", model_id: "deepseek-v4-flash-vision-exp" },
+ // DeepSeek V4.1 Flash, which the vendor serves under the bare name `deepseek-flash`: the
+ // current generation of the Flash series, at the same price and schedule as the V4 rows
+ // it replaces, and it reads images — so a new Project can take a pasted screenshot
+ // without anyone having to notice why it could not. Its catalog row pins the
+ // `deepseek-v4` client and the vendor endpoint (AgentHub 0.4.11 routes DeepSeek on that
+ // substring, which the bare id lacks), and presetModelEntries copies both into the new
+ // Project, so the default is routable as written. A Project's default is copied in at
+ // creation and owned by it from then on, so this reaches new Projects alone; an existing
+ // one keeps whatever it stored, and "sync presets" never touches the stored default.
+ default_model: { provider: "deepseek", model_id: "deepseek-flash" },
// The factory command-policy rules are seeded like the model presets: copied into the
// new project's config and owned by it from then on — later factory changes never
// rewrite an existing file. Spread to keep the module-level constant frozen.
diff --git a/packages/core/test/agent.test.ts b/packages/core/test/agent.test.ts
index dbad9e87..7ed31913 100644
--- a/packages/core/test/agent.test.ts
+++ b/packages/core/test/agent.test.ts
@@ -193,9 +193,9 @@ describe("Agent.createSession model reference ((provider, model_id) pair)", () =
// (same source that Trace writes).
const meta = session.metaMessage.payload as { provider: string; model_id: string };
expect(meta.provider).toBe("deepseek");
- expect(meta.model_id).toBe("deepseek-v4-flash-vision-exp");
+ expect(meta.model_id).toBe("deepseek-flash");
expect(session.provider).toBe("deepseek");
- expect(session.modelId).toBe("deepseek-v4-flash-vision-exp");
+ expect(session.modelId).toBe("deepseek-flash");
} finally {
session.dispose();
}
@@ -253,7 +253,7 @@ describe("Agent.createSession model reference ((provider, model_id) pair)", () =
const session = await agent.createSession({ workspaceDir: ws });
try {
expect(session.provider).toBe("deepseek");
- expect(session.modelId).toBe("deepseek-v4-flash-vision-exp");
+ expect(session.modelId).toBe("deepseek-flash");
} finally {
session.dispose();
}
diff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.ts
index 8897fdf3..9e3b4cc5 100644
--- a/packages/core/test/model-catalog.test.ts
+++ b/packages/core/test/model-catalog.test.ts
@@ -241,16 +241,28 @@ describe("model-catalog", () => {
expect(catalogEntryFor("zhipu", "glm-5.2")?.contextWindow).toBe(1000000);
expect(catalogEntryFor("qwen-token-plan", "glm-5.2")?.contextWindow).toBe(1048576);
expect(catalogEntryFor("deepseek", "deepseek-v4-pro")?.provider).toBe("deepseek");
- // The vision revision is a model of its own in both the direct group and on OpenRouter,
- // and on OpenRouter it is the only vision-capable DeepSeek row. In the direct group the
- // pre-registered deepseek-v4.1-flash reads images too, so the flag is per row rather than
- // a property of the id's spelling.
+ // deepseek-flash leads the direct group: the released V4.1 Flash, which the vendor names
+ // without a version segment. The dotted spelling is a RESOLD id only — TokenDance and
+ // OpenRouter sell it that way — so it must not appear in the vendor's own group.
+ expect(MODEL_CATALOG.filter((m) => m.provider === "deepseek")[0]!.modelId).toBe(
+ "deepseek-flash",
+ );
+ expect(catalogEntryFor("deepseek", "deepseek-v4.1-flash")).toBeUndefined();
+ expect(catalogEntryFor("tokendance", "deepseek-v4.1-flash")?.provider).toBe("tokendance");
+ expect(catalogEntryFor("openrouter", "deepseek/deepseek-v4.1-flash")?.provider).toBe(
+ "openrouter",
+ );
+ // Vision is a per-row flag, not a property of the id's spelling. Every Flash row in the
+ // direct group reads images: deepseek-flash natively, and both V4 Flash ids because
+ // DeepSeek retired them on 2026-09-10 and now serves them from V4.1 Flash. deepseek-v4-pro
+ // is the group's one text-only row.
+ expect(catalogEntryFor("deepseek", "deepseek-flash")?.supportsVision).toBe(true);
+ expect(catalogEntryFor("deepseek", "deepseek-v4-flash")?.supportsVision).toBe(true);
expect(catalogEntryFor("deepseek", "deepseek-v4-flash-vision-exp")?.supportsVision).toBe(true);
+ expect(catalogEntryFor("deepseek", "deepseek-v4-pro")?.supportsVision).toBe(false);
expect(
catalogEntryFor("openrouter", "deepseek/deepseek-v4-flash-vision-exp")?.supportsVision,
).toBe(true);
- expect(catalogEntryFor("deepseek", "deepseek-v4.1-flash")?.supportsVision).toBe(true);
- expect(catalogEntryFor("deepseek", "deepseek-v4-flash")?.supportsVision).toBe(false);
expect(catalogEntryFor("qwen-token-plan", "deepseek-v4-pro")?.provider).toBe("qwen-token-plan");
expect(catalogEntryFor("minimax", "MiniMax-M3")?.displayName).toBe("MiniMax M3");
});
@@ -272,9 +284,10 @@ describe("model-catalog", () => {
cat.offPeakDiscount !== undefined ? cat.pricing : effectivePricing(cat),
);
expect(entry.vision).toBe(cat.supportsVision ? undefined : false);
- // Gateway and direct MiniMax presets pin a client protocol; other direct models auto-route.
+ // Gateway presets pin a client protocol, and so do the two direct rows whose own id
+ // does not route (MiniMax M3, DeepSeek deepseek-flash); other direct models auto-route.
expect(entry.client_type).toBe(cat.clientType);
- // Gateway and direct MiniMax models inline a preset base URL; no entry carries credentials.
+ // The same rows inline a preset base URL; no entry carries credentials.
expect(entry.base_url).toBe(cat.baseUrl);
expect(entry.api_key).toBeUndefined();
// The concatenated storage id and request_model_id have been removed and no longer appear.
@@ -293,6 +306,7 @@ describe("model-catalog", () => {
"anthropic/claude-opus-4.8",
"anthropic/claude-opus-4.7",
"anthropic/claude-sonnet-5",
+ "deepseek/deepseek-v4.1-flash",
"deepseek/deepseek-v4-flash-0731",
"deepseek/deepseek-v4-flash",
"deepseek/deepseek-v4-flash-vision-exp",
@@ -404,6 +418,7 @@ describe("model-catalog", () => {
["deepseek-v4-flash-0731", 1048576, false],
["deepseek-v4-flash-vision-exp", 1000000, true],
["deepseek-v4-pro-0813", 1000000, false],
+ ["deepseek-v4.1-flash", 1000000, true],
["glm-5.3", 1000000, false],
["glm-5.3-flash", 1000000, true],
["hy4-preview", 1024000, false],
@@ -436,10 +451,10 @@ describe("model-catalog", () => {
];
};
const discounted: Array<[string, number, [number, number, number]]> = [
- ["glm-5.3-flash", 0.5, [0.4, 1.4, 0.115]],
+ ["glm-5.3-flash", 0.1, [0.72, 2.52, 0.207]],
["glm-5.3", 0.1, [7.2, 25.2, 1.8]],
- ["deepseek-v4-pro-0813", 0.5, [4.5, 13.5, 0.15]],
- ["deepseek-v4-flash-0731", 0.5, [1.5, 4.5, 0.05]],
+ ["deepseek-v4-pro-0813", 0.2, [7.2, 21.6, 0.24]],
+ ["deepseek-v4-flash-0731", 0.2, [2.4, 7.2, 0.08]],
["kimi-k3", 0.2, [16, 80, 1.6]],
["qwen3.8-max", 0.1, [10.8, 32.4, 1.35]],
["seed-2.1-pro", 0.5, [3, 15, 0.6]],
@@ -454,16 +469,38 @@ describe("model-catalog", () => {
expect(output, `${modelId} output`).toBeCloseTo(cnyBilled[1], 4);
expect(cacheHit, `${modelId} cache hit`).toBeCloseTo(cnyBilled[2], 4);
}
- // Exactly those nine are promoted; every other row bills its list price unchanged.
+ // Exactly those nine carry a flat discount; every other row bills its list price
+ // unchanged. Two of those others declare DeepSeek's peak/off-peak schedule instead, so
+ // they are compared at a PEAK instant — 2026-09-10 is a Thursday, and 10:00 Beijing is
+ // inside the morning window — because effectivePricing halves them off-peak by design.
expect(
td
.filter((m) => m.discount !== undefined)
.map((m) => m.modelId)
.sort(),
).toEqual(discounted.map(([id]) => id).sort());
+ const peakInstant = new Date("2026-09-10T10:00:00+08:00");
for (const m of td.filter((x) => x.discount === undefined)) {
- expect(effectivePricing(m), m.modelId).toEqual(m.pricing);
+ expect(effectivePricing(m, peakInstant), m.modelId).toEqual(m.pricing);
}
+ // The two rows that follow the vendor's schedule instead of a gateway promotion, at the
+ // same peak tier the direct DeepSeek rows store: CNY 0.04 / 2 / 8 per million.
+ const tdScheduled = td.filter((m) => m.offPeakDiscount !== undefined).map((m) => m.modelId);
+ expect(tdScheduled).toEqual(["deepseek-v4-flash-vision-exp", "deepseek-v4.1-flash"]);
+ for (const id of tdScheduled) {
+ const row = td.find((m) => m.modelId === id)!;
+ expect(row.offPeakDiscount, id).toBe(DEEPSEEK_OFF_PEAK);
+ expect(row.discount, id).toBeUndefined();
+ expect([row.pricing!.cache_read, row.pricing!.cache_write, row.pricing!.output], id).toEqual([
+ 0.005714, 0.285714, 1.142857,
+ ]);
+ }
+ // Display names are the seller's own spelling, not a prettified one.
+ expect(td.filter((m) => m.modelId.startsWith("seed-")).map((m) => m.displayName)).toEqual([
+ "Seed-2.1-Pro",
+ "Seed-2.1-Turbo",
+ "Seed-Evolving",
+ ]);
// The stored list prices themselves, in the catalog's own argument order.
const tdQwen = td.find((m) => m.modelId === "qwen3.8-max")!.pricing!;
expect([tdQwen.cache_read, tdQwen.cache_write, tdQwen.output]).toEqual([
@@ -613,10 +650,13 @@ describe("model-catalog", () => {
expect(catalogEntryFor("openrouter", "google/gemini-3.5-flash")!.contextWindow).toBe(1048576);
expect(catalogEntryFor("google", "gemini-3.5-flash")!.contextWindow).toBe(1048576);
- // In preset entries, every gateway model and the direct MiniMax client inline base_url (no credentials).
+ // In preset entries, every gateway model inlines base_url, and so do the two direct rows
+ // whose own id does not route — MiniMax M3 and DeepSeek deepseek-flash (no credentials).
+ const pinnedDirect = MODEL_CATALOG.filter((m) => m.provider === "deepseek" && m.baseUrl);
+ expect(pinnedDirect.map((m) => m.modelId)).toEqual(["deepseek-flash"]);
const withBaseUrl = presetModelEntries().filter((e) => e.base_url !== undefined);
expect(withBaseUrl.map((e) => [e.provider, e.model_id]).sort()).toEqual(
- [...gateway, ...minimax].map((m) => [m.provider, m.modelId]).sort(),
+ [...gateway, ...minimax, ...pinnedDirect].map((m) => [m.provider, m.modelId]).sort(),
);
});
@@ -629,6 +669,23 @@ describe("model-catalog", () => {
expect(m.baseUrl, m.modelId).toBeUndefined();
}
}
+ // The DeepSeek group is the exception, and only for one row: AgentHub 0.4.11 routes
+ // DeepSeek on the `deepseek-v4` substring alone, which the released `deepseek-flash`
+ // does not carry, so that row pins the client and inlines the vendor endpoint. Every
+ // other row in the group still auto-routes on its own spelling, and the pin comes off
+ // once AgentHub routes the bare id.
+ const pinned = MODEL_CATALOG.filter(
+ (m) => m.provider === "deepseek" && m.clientType !== undefined,
+ );
+ expect(pinned.map((m) => m.modelId)).toEqual(["deepseek-flash"]);
+ expect(pinned[0]!.clientType).toBe("deepseek-v4");
+ expect(pinned[0]!.baseUrl).toBe("https://api.deepseek.com");
+ for (const m of MODEL_CATALOG.filter(
+ (e) => e.provider === "deepseek" && e.modelId !== "deepseek-flash",
+ )) {
+ expect(m.clientType, m.modelId).toBeUndefined();
+ expect(m.baseUrl, m.modelId).toBeUndefined();
+ }
// Dictionary order by tier with newer versions of a tier first (same rule the OpenRouter
// block follows for the identical Claude line-up).
expect(MODEL_CATALOG.filter((m) => m.provider === "google").map((m) => m.modelId)).toEqual([
@@ -872,6 +929,19 @@ describe("model-catalog", () => {
expect([flash0731.cache_read, flash0731.cache_write, flash0731.output]).toEqual([
0.0157192, 0.078596, 0.157192,
]);
+ // The V4.1 Flash listing (added 2026-09-10) is the one OpenRouter DeepSeek row on a
+ // schedule: its base price is the PEAK tier and `pricing.overrides` bill exactly half in
+ // DeepSeek's own off-peak windows, so the row stores the peak figures and declares the
+ // shared schedule rather than a flat gateway discount.
+ const flash41 = catalogEntryFor("openrouter", "deepseek/deepseek-v4.1-flash")!;
+ expect([flash41.contextWindow, flash41.supportsVision]).toEqual([1048576, true]);
+ expect([
+ flash41.pricing!.cache_read,
+ flash41.pricing!.cache_write,
+ flash41.pricing!.output,
+ ]).toEqual([0.006, 0.3, 1.2]);
+ expect(flash41.offPeakDiscount).toBe(DEEPSEEK_OFF_PEAK);
+ expect(flash41.discount).toBeUndefined();
});
it("the OpenAI line-up is listed both directly and on OpenRouter, and only the gateway rows speak Responses", () => {
@@ -968,9 +1038,22 @@ describe("model-catalog", () => {
describe("resolveModelEnv (PRN-021: env fallback resolved by AgentHub routing rules)", () => {
it("first-party model ids route to the provider client's env var", () => {
expect(resolveModelEnv("deepseek-v4-pro")?.envKey).toBe("DEEPSEEK_API_KEY");
- // The dotted V4.1 spelling still carries the deepseek-v4 substring AutoLLMClient routes on.
+ // The dotted V4.1 spelling still carries the deepseek-v4 substring AutoLLMClient routes
+ // on. It survives in the catalog as a RESOLD id — TokenDance's deepseek-v4.1-flash and
+ // OpenRouter's deepseek/deepseek-v4.1-flash, both of which pin openai-chat anyway — so
+ // this branch is what the bare spelling would resolve to, not what those rows use.
expect(resolveModelEnv("deepseek-v4.1-flash")?.envKey).toBe("DEEPSEEK_API_KEY");
expect(resolveModelEnv("deepseek-v4.1-flash")?.envBaseUrlKey).toBe("DEEPSEEK_BASE_URL");
+ // The released direct id carries no `deepseek-v4` substring, and AgentHub 0.4.11 routes
+ // DeepSeek on that substring alone: unroutable on its own, which is why the catalog row
+ // pins client_type "deepseek-v4" — and with the pin it lands on the DeepSeek client.
+ // Mirroring AgentHub is the contract, so this stays undefined until AgentHub itself
+ // routes the bare name.
+ expect(resolveModelEnv("deepseek-flash")).toBeUndefined();
+ expect(resolveModelEnv("deepseek-flash", "deepseek-v4")?.envKey).toBe("DEEPSEEK_API_KEY");
+ expect(resolveModelEnv("deepseek-flash", "deepseek-v4")?.envBaseUrlKey).toBe(
+ "DEEPSEEK_BASE_URL",
+ );
expect(resolveModelEnv("claude-opus-4-8")?.envKey).toBe("ANTHROPIC_API_KEY");
expect(resolveModelEnv("claude-sonnet-4-6")?.envKey).toBe("ANTHROPIC_API_KEY");
expect(resolveModelEnv("gemini-3.5-flash")?.envKey).toBe("GEMINI_API_KEY");
@@ -1254,8 +1337,19 @@ describe("off-peak schedules", () => {
const beijing = (iso: string): Date => new Date(`${iso}+08:00`);
it("the DeepSeek rows store the peak price and declare the schedule", () => {
- const rows = MODEL_CATALOG.filter((m) => m.provider === "deepseek");
+ // Every direct row, plus the three resold rows whose sellers pass DeepSeek's own windows
+ // through: two on TokenDance and one on OpenRouter. A gateway row on the schedule carries
+ // no flat `discount` — the two are mutually exclusive, pinned by the last case here.
+ const rows = MODEL_CATALOG.filter(
+ (m) =>
+ m.provider === "deepseek" ||
+ (m.provider === "tokendance" &&
+ ["deepseek-v4.1-flash", "deepseek-v4-flash-vision-exp"].includes(m.modelId)) ||
+ (m.provider === "openrouter" && m.modelId === "deepseek/deepseek-v4.1-flash"),
+ );
expect(rows.length).toBeGreaterThan(0);
+ // And nothing else in the catalog is on a schedule at all.
+ expect(MODEL_CATALOG.filter((m) => m.offPeakDiscount !== undefined).length).toBe(rows.length);
for (const m of rows) {
expect(m.offPeakDiscount, m.modelId).toBe(S);
// Peak is exactly double the off-peak tier DeepSeek publishes. Compared at 1e-5: both
diff --git a/packages/core/test/state.test.ts b/packages/core/test/state.test.ts
index 6aaf3dc0..9d609839 100644
--- a/packages/core/test/state.test.ts
+++ b/packages/core/test/state.test.ts
@@ -1304,20 +1304,30 @@ describe("project-config round trip", () => {
expect(entry?.vision).toBeUndefined();
});
- it("default config presets the full model catalog (default = deepseek deepseek-v4-flash-vision-exp)", () => {
+ it("default config presets the full model catalog (default = deepseek deepseek-flash)", () => {
const cfg = defaultProjectConfig();
expect(cfg.default_model).toEqual({
provider: "deepseek",
- model_id: "deepseek-v4-flash-vision-exp",
+ model_id: "deepseek-flash",
});
// The default has to be a model that can actually read an image: a new Project's first
- // pasted screenshot goes to it, and the text-only sibling would decline one for a reason
+ // pasted screenshot goes to it, and a text-only model would decline one for a reason
// nothing on screen explains.
const chosen = MODEL_CATALOG.find(
(m) =>
m.provider === cfg.default_model!.provider && m.modelId === cfg.default_model!.model_id,
);
expect(chosen?.supportsVision).toBe(true);
+ // And it has to be routable as written. deepseek-flash carries no `deepseek-v4`
+ // substring, which is all AgentHub routes DeepSeek on, so the preset entry for the
+ // default must carry the catalog row's pinned client and endpoint — a default that
+ // resolved to no client would fail every first request.
+ const defaultEntry = cfg.models.find(
+ (m) =>
+ m.provider === cfg.default_model!.provider && m.model_id === cfg.default_model!.model_id,
+ );
+ expect(defaultEntry?.client_type).toBe("deepseek-v4");
+ expect(defaultEntry?.base_url).toBe("https://api.deepseek.com");
// The catalog is presented in full: provider and model_id are separate columns, model_id
// being the plain upstream id (vision is only persisted as false for models that don't
// support images).
diff --git a/packages/docs/content/configuration.en.md b/packages/docs/content/configuration.en.md
index 54f3f36a..c1a234d1 100644
--- a/packages/docs/content/configuration.en.md
+++ b/packages/docs/content/configuration.en.md
@@ -72,17 +72,19 @@ Model entry (`[[models]]`) fields:
| `fast_mode` | Per-model fast mode (premium faster serving tier); off by default, only `true` is persisted. Offered only for models whose AgentHub client can serve it; the others reject requests carrying it — see [Models](/models#fast-mode) |
| `pricing` | Three price buckets `cache_read` / `cache_write` / `output`, in USD per million Tokens (`unit = "usd_per_mtok"`) |
| `api_key` | Inline credential; when empty, falls back to the provider environment variable |
-| `base_url` | Custom base URL; preset by the built-in catalog for gateways and direct MiniMax models |
+| `base_url` | Custom base URL; preset by the built-in catalog for gateways and for the direct rows that pin a client — MiniMax M3 and DeepSeek `deepseek-flash` |
| `created_at` | Write timestamp of `api_key` (ISO 8601; a display field maintained by the interface layer) |
```toml
-default_model = { provider = "deepseek", model_id = "deepseek-v4-flash-vision-exp" }
+default_model = { provider = "deepseek", model_id = "deepseek-flash" }
[[models]]
provider = "deepseek"
-model_id = "deepseek-v4-flash-vision-exp"
+model_id = "deepseek-flash"
context_window = 1000000
vision = true
+client_type = "deepseek-v4"
+base_url = "https://api.deepseek.com"
api_key = "sk-..."
[models.pricing]
diff --git a/packages/docs/content/configuration.zh.md b/packages/docs/content/configuration.zh.md
index 2d4b1111..e58164c5 100644
--- a/packages/docs/content/configuration.zh.md
+++ b/packages/docs/content/configuration.zh.md
@@ -72,17 +72,19 @@ openrouter、fireworks、siliconflow、tokendance、qwen-pay-as-you-go、qwen-to
| `fast_mode` | 单模型快速模式(厂商的溢价快速推理档位);默认关闭,只持久化 `true`。只对 AgentHub client 支持该档位的模型开放,其余模型会拒绝携带该参数的请求——见[模型与 Provider](/models#快速模式) |
| `pricing` | 三档价格 `cache_read` / `cache_write` / `output`,单位 USD 每百万 Token(`unit = "usd_per_mtok"`) |
| `api_key` | 内联凭证;留空回退到 Provider 环境变量 |
-| `base_url` | 自定义 Base URL;内置目录会为网关与直连 MiniMax 模型预置 |
+| `base_url` | 自定义 Base URL;内置目录会为网关,以及固定了 client 的直连条目——MiniMax M3 与 DeepSeek `deepseek-flash`——预置 |
| `created_at` | `api_key` 写入时间(ISO 8601,界面维护的展示字段) |
```toml
-default_model = { provider = "deepseek", model_id = "deepseek-v4-flash-vision-exp" }
+default_model = { provider = "deepseek", model_id = "deepseek-flash" }
[[models]]
provider = "deepseek"
-model_id = "deepseek-v4-flash-vision-exp"
+model_id = "deepseek-flash"
context_window = 1000000
vision = true
+client_type = "deepseek-v4"
+base_url = "https://api.deepseek.com"
api_key = "sk-..."
[models.pricing]
diff --git a/packages/docs/content/models.en.md b/packages/docs/content/models.en.md
index 77b30af2..b87d76ee 100644
--- a/packages/docs/content/models.en.md
+++ b/packages/docs/content/models.en.md
@@ -30,18 +30,20 @@ Each Project's available models are recorded in the hidden `.project_config.toml
| `pricing` | Three price buckets (unit `usd_per_mtok`, USD per million tokens): `cache_read` / `cache_write` / `output` |
| `api_key` / `base_url` | Inlined credentials, both optional; when blank, AgentHub falls back to environment variables |
-A fresh Project defaults to deepseek-v4-flash-vision-exp, which reads images itself. A `vision_model` entry can additionally designate the proxy model through which `read_file` reads images for text-only session models (see [Tools & Approval](/tools)); it is unset by default.
+A fresh Project defaults to deepseek-flash (DeepSeek V4.1 Flash), which reads images itself. A `vision_model` entry can additionally designate the proxy model through which `read_file` reads images for text-only session models (see [Tools & Approval](/tools)); it is unset by default.
File shape (illustrative):
```toml
-default_model = { provider = "deepseek", model_id = "deepseek-v4-flash-vision-exp" }
+default_model = { provider = "deepseek", model_id = "deepseek-flash" }
vision_model = { provider = "google", model_id = "gemini-3.1-pro-preview" }
[[models]]
provider = "deepseek"
-model_id = "deepseek-v4-flash-vision-exp"
+model_id = "deepseek-flash"
context_window = 1000000
+client_type = "deepseek-v4"
+base_url = "https://api.deepseek.com"
[[models]]
provider = "custom"
@@ -51,7 +53,7 @@ base_url = "https://llm.example.com/v1"
api_key = "sk-..."
```
-For a model tagged `vision = false` (e.g. `deepseek-v4-flash`, the text-only sibling of the default), images from conversation input are saved to the Session scratchpad and handed over as a file path spliced into the text, and `read_file` hands an image to the `vision_model` for description instead of returning it.
+For a model tagged `vision = false` (e.g. `deepseek-v4-pro`, the text-only member of the DeepSeek group), images from conversation input are saved to the Session scratchpad and handed over as a file path spliced into the text, and `read_file` hands an image to the `vision_model` for description instead of returning it.
## Built-in provider groups
@@ -78,9 +80,9 @@ The gateway groups (openrouter / fireworks / siliconflow / tokendance / qwen-pay
The preset catalog also carries OpenRouter's free tier: the `:free` model variant `nvidia/nemotron-3-ultra-550b-a55b:free` and the `openrouter/free` unified Free Models Router. They cost nothing, but are subject to OpenRouter's free-tier rate limits and data policy.
-Some models in the preset catalog: deepseek-v4.1-flash / deepseek-v4-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp (deepseek-v4.1-flash and deepseek-v4-flash-vision-exp are the DeepSeek group's vision-capable models), MiniMax-M3, gemini-3.8-flash, claude-opus-5 / claude-opus-4-8 / claude-sonnet-5, gpt-6-astra / gpt-5.6 / gpt-5.5, glm-5.3 / glm-5.3-flash, kimi-k3, qwen3.8-max / qwen3.8-flash, seed-2.1-pro / seed-2.1-turbo / seed-evolving (not exhaustive). The whole OpenAI line-up is listed twice — directly (your own OpenAI key, list prices) and on OpenRouter as `openai/<id>` (the gateway's rates, which follow its running promotions). DeepSeek's direct-group rows record the official peak tier and declare its off-peak schedule: outside Beijing weekday 9:00–12:00 and 14:00–18:00 every bucket is halved, which the models page marks with a `50% off` badge and the cost center bills at. The stored price is always the peak one, so what is on disk does not depend on the hour a Project was created or re-synced in. `glm-5.3-flash` appears three times, and all three rows accept images: AgentHub's GLM client forwards image parts for this one GLM id (every other GLM id refuses them), while the OpenRouter row `z-ai/glm-5.3-flash` and the TokenDance row go through the generic OpenAI-compatible client, which carries them for any id. What the three rows do not share is the price: each records what its own seller charges, so they disagree while a promotion is running.
+Some models in the preset catalog: deepseek-flash / deepseek-v4-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp (`deepseek-flash`, `deepseek-v4-flash` and `deepseek-v4-flash-vision-exp` read images; `deepseek-v4-pro` is text-only. Since 2026-09-10 the two legacy Flash ids are retired names that DeepSeek serves from V4.1 Flash at the Flash price, which is why they read images too), MiniMax-M3, gemini-3.8-flash, claude-opus-5 / claude-opus-4-8 / claude-sonnet-5, gpt-6-astra / gpt-5.6 / gpt-5.5, glm-5.3 / glm-5.3-flash, kimi-k3, qwen3.8-max / qwen3.8-flash, seed-2.1-pro / seed-2.1-turbo / seed-evolving (not exhaustive). The whole OpenAI line-up is listed twice — directly (your own OpenAI key, list prices) and on OpenRouter as `openai/<id>` (the gateway's rates, which follow its running promotions). DeepSeek's direct-group rows record the official peak tier and declare its off-peak schedule: outside Beijing weekday 9:00–12:00 and 14:00–18:00 every bucket is halved, which the models page marks with a `50% off` badge and the cost center bills at. Three resold rows follow the same schedule, because their sellers pass DeepSeek's own windows through: TokenDance's `deepseek-v4.1-flash` and `deepseek-v4-flash-vision-exp`, and OpenRouter's `deepseek/deepseek-v4.1-flash`. The stored price is always the peak one, so what is on disk does not depend on the hour a Project was created or re-synced in. `glm-5.3-flash` appears three times, and all three rows accept images: AgentHub's GLM client forwards image parts for this one GLM id (every other GLM id refuses them), while the OpenRouter row `z-ai/glm-5.3-flash` and the TokenDance row go through the generic OpenAI-compatible client, which carries them for any id. What the three rows do not share is the price: each records what its own seller charges, so they disagree while a promotion is running.
-TokenDance rows record the gateway's list price and, where a promotion is running, the rate off it. Nine models are discounted today — `deepseek-v4-flash-0731`, `deepseek-v4-pro-0813`, `glm-5.3-flash` and the three Doubao Seed rows (`seed-2.1-pro`, `seed-2.1-turbo`, `seed-evolving`) at 50% off, `kimi-k3` at 20%, `glm-5.3` and `qwen3.8-max` at 10%. Their model cards show the price being billed right now, with the rate as a badge, and a Project is preset with the **discounted** price, so the cost center charges what the gateway charges. Prices you edit yourself keep the discount decoration off the card: the figure is then yours, not the gateway's.
+TokenDance rows record the gateway's list price and, where a promotion is running, the rate off it. Nine models are discounted today — `deepseek-v4-flash-0731`, `deepseek-v4-pro-0813` and `kimi-k3` at 20% off, `glm-5.3`, `glm-5.3-flash` and `qwen3.8-max` at 10%, and the three Doubao Seed rows (`seed-2.1-pro`, `seed-2.1-turbo`, `seed-evolving`) at 50%. Two further rows carry no flat discount and instead follow DeepSeek's own off-peak schedule, described above. Their model cards show the price being billed right now, with the rate as a badge, and a Project is preset with the **discounted** price, so the cost center charges what the gateway charges. Prices you edit yourself keep the discount decoration off the card: the figure is then yours, not the gateway's.
## App attribution
diff --git a/packages/docs/content/models.zh.md b/packages/docs/content/models.zh.md
index a288c80c..bb961bbd 100644
--- a/packages/docs/content/models.zh.md
+++ b/packages/docs/content/models.zh.md
@@ -30,18 +30,20 @@ description: 经 AgentHub 单一网关接入模型,以 (provider, model_id)
| `pricing` | 三档价格(单位 `usd_per_mtok`,USD 每百万 Token):`cache_read` / `cache_write` / `output` |
| `api_key` / `base_url` | 内联凭证,可留空;留空时 AgentHub 回退读环境变量 |
-新建 Project 的默认模型是 deepseek-v4-flash-vision-exp,它自己就能读图。另可配置一条 `vision_model`,作为 text-only 模型用 `read_file` 读图时的代读模型(见 [工具与审批](/tools));默认不配置。
+新建 Project 的默认模型是 deepseek-flash(DeepSeek V4.1 Flash),它自己就能读图。另可配置一条 `vision_model`,作为 text-only 模型用 `read_file` 读图时的代读模型(见 [工具与审批](/tools));默认不配置。
文件形态(示意):
```toml
-default_model = { provider = "deepseek", model_id = "deepseek-v4-flash-vision-exp" }
+default_model = { provider = "deepseek", model_id = "deepseek-flash" }
vision_model = { provider = "google", model_id = "gemini-3.1-pro-preview" }
[[models]]
provider = "deepseek"
-model_id = "deepseek-v4-flash-vision-exp"
+model_id = "deepseek-flash"
context_window = 1000000
+client_type = "deepseek-v4"
+base_url = "https://api.deepseek.com"
[[models]]
provider = "custom"
@@ -51,7 +53,7 @@ base_url = "https://llm.example.com/v1"
api_key = "sk-..."
```
-对标注 `vision = false` 的模型(如 `deepseek-v4-flash`,即默认模型的纯文本同族):对话输入中的图片会保存到 Session scratchpad,以文件路径形式拼入文本;`read_file` 读图时改为交给 `vision_model` 代读、不再返回图片。
+对标注 `vision = false` 的模型(如 `deepseek-v4-pro`,即 DeepSeek 分组中的纯文本条目):对话输入中的图片会保存到 Session scratchpad,以文件路径形式拼入文本;`read_file` 读图时改为交给 `vision_model` 代读、不再返回图片。
## 内置 Provider 分组
@@ -78,9 +80,9 @@ api_key = "sk-..."
预置目录还收录了 OpenRouter 的免费档:`:free` 模型变体 `nvidia/nemotron-3-ultra-550b-a55b:free` 与统一路由 `openrouter/free`(Free Models Router),零成本可用,但受 OpenRouter 免费档速率限制与数据政策约束。
-预置目录中的部分模型:deepseek-v4.1-flash / deepseek-v4-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp(其中 deepseek-v4.1-flash 与 deepseek-v4-flash-vision-exp 是 DeepSeek 分组中支持图像输入的两条)、MiniMax-M3、gemini-3.8-flash、claude-opus-5 / claude-opus-4-8 / claude-sonnet-5、gpt-6-astra / gpt-5.6 / gpt-5.5、glm-5.3 / glm-5.3-flash、kimi-k3、qwen3.8-max / qwen3.8-flash、seed-2.1-pro / seed-2.1-turbo / seed-evolving 等(非完整清单)。OpenAI 全系列都收录了两份——直连(用自己的 OpenAI Key,记牌价)与 OpenRouter 上的 `openai/<id>`(记网关实际计费价,会随其促销浮动)。DeepSeek 直连分组的条目记录官方高峰档,并声明其空闲时段规则:在北京时间周一至周五 9:00–12:00、14:00–18:00 之外,各档价格减半——模型页以「省 50%」徽标标记,成本中心按此计价。存盘的始终是高峰价,因此磁盘上的数字不会随 Project 创建或同步预置的时刻而变。`glm-5.3-flash` 收录了三份,三条都支持图像输入:AgentHub 的 GLM 客户端只为这一个 GLM id 转发图像部件(其余 GLM id 一律拒绝),而 OpenRouter 上的 `z-ai/glm-5.3-flash` 与 TokenDance 分组的同名条目走通用 OpenAI 兼容客户端,对任何 id 都能携带图片。三条不一致的是价格:每一条都记录各自卖家的收费,因此促销期间三者不同。
+预置目录中的部分模型:deepseek-flash / deepseek-v4-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp(其中 `deepseek-flash`、`deepseek-v4-flash`、`deepseek-v4-flash-vision-exp` 支持图像输入,`deepseek-v4-pro` 为纯文本。自 2026-09-10 起,后两个 V4 Flash id 已是退役名称,DeepSeek 改由 V4.1 Flash 承接、按 Flash 价计费,因此它们同样能读图)、MiniMax-M3、gemini-3.8-flash、claude-opus-5 / claude-opus-4-8 / claude-sonnet-5、gpt-6-astra / gpt-5.6 / gpt-5.5、glm-5.3 / glm-5.3-flash、kimi-k3、qwen3.8-max / qwen3.8-flash、seed-2.1-pro / seed-2.1-turbo / seed-evolving 等(非完整清单)。OpenAI 全系列都收录了两份——直连(用自己的 OpenAI Key,记牌价)与 OpenRouter 上的 `openai/<id>`(记网关实际计费价,会随其促销浮动)。DeepSeek 直连分组的条目记录官方高峰档,并声明其空闲时段规则:在北京时间周一至周五 9:00–12:00、14:00–18:00 之外,各档价格减半——模型页以「省 50%」徽标标记,成本中心按此计价。另有三条转售条目沿用同一套时段,因为卖家原样传递了 DeepSeek 自己的窗口:TokenDance 的 `deepseek-v4.1-flash` 与 `deepseek-v4-flash-vision-exp`,以及 OpenRouter 的 `deepseek/deepseek-v4.1-flash`。存盘的始终是高峰价,因此磁盘上的数字不会随 Project 创建或同步预置的时刻而变。`glm-5.3-flash` 收录了三份,三条都支持图像输入:AgentHub 的 GLM 客户端只为这一个 GLM id 转发图像部件(其余 GLM id 一律拒绝),而 OpenRouter 上的 `z-ai/glm-5.3-flash` 与 TokenDance 分组的同名条目走通用 OpenAI 兼容客户端,对任何 id 都能携带图片。三条不一致的是价格:每一条都记录各自卖家的收费,因此促销期间三者不同。
-TokenDance 分组的条目记录该网关的牌价,并在有促销时记录折扣率。当前有九个模型处于折扣中——`deepseek-v4-flash-0731`、`deepseek-v4-pro-0813`、`glm-5.3-flash` 与三条 Doubao Seed 条目(`seed-2.1-pro`、`seed-2.1-turbo`、`seed-evolving`)五折,`kimi-k3` 八折,`glm-5.3` 与 `qwen3.8-max` 九折。它们的模型卡片显示当前实际计费的那个价格,并以徽标标出折扣率;新建 Project 预置的是**折后价**,因此成本中心按网关实际收费计价。自行修改过价格的条目不再显示折扣标记:此时那个数字属于你,而不是网关。
+TokenDance 分组的条目记录该网关的牌价,并在有促销时记录折扣率。当前有九个模型处于折扣中——`deepseek-v4-flash-0731`、`deepseek-v4-pro-0813` 与 `kimi-k3` 八折,`glm-5.3`、`glm-5.3-flash` 与 `qwen3.8-max` 九折,三条 Doubao Seed 条目(`seed-2.1-pro`、`seed-2.1-turbo`、`seed-evolving`)五折。另有两条条目不走固定折扣,而是沿用上文所述 DeepSeek 自己的空闲时段规则。它们的模型卡片显示当前实际计费的那个价格,并以徽标标出折扣率;新建 Project 预置的是**折后价**,因此成本中心按网关实际收费计价。自行修改过价格的条目不再显示折扣标记:此时那个数字属于你,而不是网关。
## 应用归因
diff --git a/packages/docs/content/quickstart-cli.en.md b/packages/docs/content/quickstart-cli.en.md
index 680ff0f1..8dd5ab04 100644
--- a/packages/docs/content/quickstart-cli.en.md
+++ b/packages/docs/content/quickstart-cli.en.md
@@ -34,7 +34,7 @@ Offline installs, installing from source, install locations, version pinning and
Use the Models page in the Web UI, or the CLI:
```bash
-penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
```
- A model is always referenced as a `(provider, model_id)` pair, so `--provider` and `--model-id` are both required — the Provider is never inferred from the model id. See [Models & Providers](/models) for the built-in groups.
diff --git a/packages/docs/content/quickstart-cli.zh.md b/packages/docs/content/quickstart-cli.zh.md
index 01a9f28c..0f50b7ca 100644
--- a/packages/docs/content/quickstart-cli.zh.md
+++ b/packages/docs/content/quickstart-cli.zh.md
@@ -34,7 +34,7 @@ penguin -v
可以在 Web UI 的模型页完成,也可以用 CLI:
```bash
-penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
```
- 模型引用始终是 `(provider, model_id)` 二元组,因此 `--provider` 与 `--model-id` 均为必填——Provider 绝不由模型 id 推断。内置分组见[模型与 Provider](/models)。
diff --git a/packages/docs/content/quickstart-docker.en.md b/packages/docs/content/quickstart-docker.en.md
index bcc81662..f52dac67 100644
--- a/packages/docs/content/quickstart-docker.en.md
+++ b/packages/docs/content/quickstart-docker.en.md
@@ -76,7 +76,7 @@ PenguinHarness ships with no model credentials. Use the **Models** page in the W
```bash
docker compose exec -u penguin penguin \
- penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+ penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
```
The `-u penguin` matters: `docker exec` runs as root by default, and files it writes into `/data` would then be owned by root while the server runs as uid 1000. See [Models & Providers](/models) for the built-in groups.
diff --git a/packages/docs/content/quickstart-docker.zh.md b/packages/docs/content/quickstart-docker.zh.md
index 20e5025b..d378b6b7 100644
--- a/packages/docs/content/quickstart-docker.zh.md
+++ b/packages/docs/content/quickstart-docker.zh.md
@@ -76,7 +76,7 @@ PenguinHarness 不内置任何模型凭据。可以用 Web 应用的**模型**
```bash
docker compose exec -u penguin penguin \
- penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+ penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
```
`-u penguin` 是必要的:`docker exec` 默认以 root 执行,它写进 `/data` 的文件会归 root 所有,而服务端是以 uid 1000 运行的。内置分组见[模型与 Provider](/models)。
diff --git a/packages/docs/content/quickstart-sdk.en.md b/packages/docs/content/quickstart-sdk.en.md
index d966ac33..21e55274 100644
--- a/packages/docs/content/quickstart-sdk.en.md
+++ b/packages/docs/content/quickstart-sdk.en.md
@@ -21,7 +21,7 @@ If this machine has no model configured yet, the shortest path is to install the
```bash
npm install -g @prismshadow/penguin-cli
-penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
```
You can also keep credentials off disk entirely: when a model entry has no inline api_key, AgentHub (the LLM gateway library) reads environment variables such as `DEEPSEEK_API_KEY`, `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, and `GEMINI_API_KEY`. A `.env` file in the working directory is loaded automatically.
diff --git a/packages/docs/content/quickstart-sdk.zh.md b/packages/docs/content/quickstart-sdk.zh.md
index 4c952db0..86884e6a 100644
--- a/packages/docs/content/quickstart-sdk.zh.md
+++ b/packages/docs/content/quickstart-sdk.zh.md
@@ -21,7 +21,7 @@ SDK 与桌面端应用、CLI 读同一个数据目录 `~/.penguin/data`,所以
```bash
npm install -g @prismshadow/penguin-cli
-penguin config model add --provider deepseek --model-id deepseek-v4-flash-vision-exp --api-key sk-... --set-default
+penguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default
```
也可以完全不落盘:模型条目没有内联 api_key 时,LLM 网关库 AgentHub 会读取 `DEEPSEEK_API_KEY`、`ANTHROPIC_API_KEY`、`OPENAI_API_KEY`、`GEMINI_API_KEY` 等环境变量;工作目录下的 `.env` 会被自动加载。
diff --git a/packages/server/test/auth.test.ts b/packages/server/test/auth.test.ts
index a8650a52..915fe1bc 100644
--- a/packages/server/test/auth.test.ts
+++ b/packages/server/test/auth.test.ts
@@ -93,7 +93,7 @@ describe("auth", () => {
);
expect(toml).toContain('name = "bob"');
expect(toml).toContain(
- 'default_model = { provider = "deepseek", model_id = "deepseek-v4-flash-vision-exp" }',
+ 'default_model = { provider = "deepseek", model_id = "deepseek-flash" }',
);
});
diff --git a/packages/server/test/models.test.ts b/packages/server/test/models.test.ts
index 0a22a710..842a99ec 100644
--- a/packages/server/test/models.test.ts
+++ b/packages/server/test/models.test.ts
@@ -104,7 +104,7 @@ describe("models preset & catalog enrichment", () => {
const body = (await res.json()) as ModelsResponse;
expect(body.defaultModel).toEqual({
provider: "deepseek",
- modelId: "deepseek-v4-flash-vision-exp",
+ modelId: "deepseek-flash",
});
expect(body.models.map(pairKey)).toEqual(catalogPairs);
@@ -123,7 +123,7 @@ describe("models preset & catalog enrichment", () => {
const deepseek = pick(body, "deepseek", "deepseek-v4-pro");
expect(deepseek.vision).toBe(false);
expect(deepseek.envKey).toBe("DEEPSEEK_API_KEY");
- expect(pick(body, "deepseek", "deepseek-v4-flash-vision-exp").isDefault).toBe(true);
+ expect(pick(body, "deepseek", "deepseek-flash").isDefault).toBe(true);
// OpenRouter gateway model: the upstream id contains `/`, but under column storage it's just a
// plain string; openai-chat protocol + a preset base URL inlined on the entry (no secret).
@@ -446,7 +446,7 @@ describe("default_project presets", () => {
const body = (await res.json()) as ModelsResponse;
expect(body.defaultModel).toEqual({
provider: "deepseek",
- modelId: "deepseek-v4-flash-vision-exp",
+ modelId: "deepseek-flash",
});
expect(body.models.map(pairKey)).toEqual(catalogPairs);
@@ -458,7 +458,7 @@ describe("default_project presets", () => {
expect(created.status).toBe(201);
const { session } = (await created.json()) as SessionCreateResponse;
expect(session.provider).toBe("deepseek");
- expect(session.modelId).toBe("deepseek-v4-flash-vision-exp");
+ expect(session.modelId).toBe("deepseek-flash");
});
it("a default_project that already has models configured is left untouched (existing CLI config is not overwritten)", async () => {
diff --git a/packages/web/test/model-grouping.test.ts b/packages/web/test/model-grouping.test.ts
index 390d7265..0abf1286 100644
--- a/packages/web/test/model-grouping.test.ts
+++ b/packages/web/test/model-grouping.test.ts
@@ -357,7 +357,7 @@ describe("discountedPrice", () => {
it("a synced row on a flat promotion reports the rate, and bills at the stored price", () => {
const row = syncedRow("tokendance", "glm-5.3-flash");
const found = discountedPrice(row)!;
- expect(found.percent).toBe(50);
+ expect(found.percent).toBe(10);
expect(found.scheduled).toBe(false);
// A flat promotion is baked in at sync time, so what is billed is what is stored.
expect(found.billed).toEqual({
diff --git a/plugins/agent-development/plugin.json b/plugins/agent-development/plugin.json
index 2387813a..ee8afa23 100644
--- a/plugins/agent-development/plugin.json
+++ b/plugins/agent-development/plugin.json
@@ -3,6 +3,6 @@
"description_zh": "基于 PenguinHarness 的智能体开发:用 SDK 构建应用、经统一的 LLM API 调用任意模型、管理模型与密钥、编排智能体/会话/成本/定时任务。",
"short_description": "SDK, unified LLM API, config and orchestration.",
"short_description_zh": "SDK、统一 LLM API、配置与编排。",
- "version": "2026-09-09.2",
+ "version": "2026-09-10.1",
"category": "ai-app-development"
}
diff --git a/plugins/agent-development/skills/penguin-sdk/SKILL.md b/plugins/agent-development/skills/penguin-sdk/SKILL.md
index 260dad91..6e6f4eba 100644
--- a/plugins/agent-development/skills/penguin-sdk/SKILL.md
+++ b/plugins/agent-development/skills/penguin-sdk/SKILL.md
@@ -52,7 +52,7 @@ If the package is not on your npm registry (it is developed in the PenguinHarnes
Configure a model for the app's data root, in this order — stop at the first that works:
1. `penguin config model add --root <data_dir> --provider <group> --model-id <id> --api-key <key> [--base-url <url>] [--client-type openai-chat] --set-default` — prefer `--client-type openai-chat --base-url <endpoint>` (works with any OpenAI Chat Completions compatible endpoint; exact ids in the agenthub-models skill). `--provider` is required: a model is always the `(provider, model_id)` pair and the group is never inferred from the id (`custom` for an endpoint outside the built-in groups).
-2. Environment variables cover the **credential only** (`DEEPSEEK_API_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, …) — model selection still comes from the project config, whose preset default is `deepseek-v4-flash-vision-exp`. Env-only setup therefore works out of the box only with `DEEPSEEK_API_KEY`; for another vendor either run the CLI command above or pass a configured `{ provider, modelId }` pair to `createSession`.
+2. Environment variables cover the **credential only** (`DEEPSEEK_API_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, …) — model selection still comes from the project config, whose preset default is `deepseek-flash`. Env-only setup therefore works out of the box only with `DEEPSEEK_API_KEY`; for another vendor either run the CLI command above or pass a configured `{ provider, modelId }` pair to `createSession`.
Keep model API keys **project-local**: configure them with the penguin CLI into the app's own data root under the working directory, so the project stays self-contained and movable. When building an AI app, **always pass `--root <data_dir>` pointing at the app's data directory inside the current working directory** (the same path you give `createAgent({ root })`, e.g. `./penguin_data`) — never run `penguin config ...` without `--root`, or it writes to the global `~/.penguin/data` instead of the project. Never read, copy or fall back to model keys stored in the user's global `~/.penguin` directory — that config belongs to the person running Penguin, not to the app you are building.
diff --git a/plugins/agent-development/skills/unified-llm-api/SKILL.md b/plugins/agent-development/skills/unified-llm-api/SKILL.md
index 5b2286b0..dc29f4fc 100644
--- a/plugins/agent-development/skills/unified-llm-api/SKILL.md
+++ b/plugins/agent-development/skills/unified-llm-api/SKILL.md
@@ -62,7 +62,7 @@ Use exact model ids. If an id is not in the table below and the user has not giv
| Kimi K3 | `kimi-k3` | OpenRouter `moonshotai/kimi-k3` |
| Kimi K2.7 Code | — | SiliconFlow `moonshotai/Kimi-K2.7-Code`; Fireworks AI `accounts/fireworks/models/kimi-k2p7-code` |
| Kimi K2.6 | `kimi-k2.6` | OpenRouter `moonshotai/kimi-k2.6`; SiliconFlow `Pro/moonshotai/Kimi-K2.6` |
-| DeepSeek V4 | `deepseek-v4.1-flash`, `deepseek-v4-pro`, `deepseek-v4-flash`, `deepseek-v4-flash-vision-exp` | OpenRouter `deepseek/deepseek-v4-pro-0813`, `deepseek/deepseek-v4-pro`, `deepseek/deepseek-v4-flash`, `deepseek/deepseek-v4-flash-0731`, `deepseek/deepseek-v4-flash-vision-exp`; Fireworks AI `accounts/fireworks/models/deepseek-v4-flash-0731`; SiliconFlow `deepseek-ai/DeepSeek-V4-Pro`, `deepseek-ai/DeepSeek-V4-Flash` |
+| DeepSeek V4 | `deepseek-flash`, `deepseek-v4-pro`, `deepseek-v4-flash`, `deepseek-v4-flash-vision-exp` | OpenRouter `deepseek/deepseek-v4.1-flash`, `deepseek/deepseek-v4-pro-0813`, `deepseek/deepseek-v4-pro`, `deepseek/deepseek-v4-flash`, `deepseek/deepseek-v4-flash-0731`, `deepseek/deepseek-v4-flash-vision-exp`; Fireworks AI `accounts/fireworks/models/deepseek-v4-flash-0731`; SiliconFlow `deepseek-ai/DeepSeek-V4-Pro`, `deepseek-ai/DeepSeek-V4-Flash` |
| GLM 5.3 | `glm-5.3`, `glm-5.3-flash` | OpenRouter `z-ai/glm-5.3`, `z-ai/glm-5.3-flash` |
| GLM 5.2 | `glm-5.2` | OpenRouter `z-ai/glm-5.2`; SiliconFlow `zai-org/GLM-5.2` |
| GLM 5.1 | `glm-5.1` | — |