A local-first multi-agent app development platform, built on PenguinHarness
feat(core): add GPT-6 Astra to the catalog, direct and on OpenRouter (#654)
Yaowei Zhengcfbf7035ad44
diff --git a/changelog/unreleased/2026-09-09-gpt-6-astra.md b/changelog/unreleased/2026-09-09-gpt-6-astra.mdnew file mode 100644index 00000000..4aa4ea5a--- /dev/null+++ b/changelog/unreleased/2026-09-09-gpt-6-astra.md@@ -0,0 +1,22 @@+# GPT-6 Astra in the built-in catalog, direct and on OpenRouter++- **Date:** 2026-09-09+- **Type:** feature+- **Scope:** `model-catalog`, `core`, `docs`, `skills`+- **PR:** [#654](https://github.com/Prism-Shadow/penguin-harness/pull/654)++[中文版](2026-09-09-gpt-6-astra.zh.md)++The built-in model catalog gained OpenAI's GPT-6 Astra twice over: `gpt-6-astra` at the head of the direct OpenAI group and `openai/gpt-6-astra` at the head of the OpenRouter `openai/*` rows. Both carry a 1,050,000-token context window and accept images.++## Details++- **`gpt-6-astra` (provider `openai`)** — display name GPT-6 Astra, 1,050,000-token context window, `vision = true`, and neither `client_type` nor `base_url`: like every direct OpenAI row it is auto-routed by its id, and a blank credential falls back to `OPENAI_API_KEY` / `OPENAI_BASE_URL`. Prices per MTok are $1 / $12.5 / $50 (cache read / cache write / output), read on 2026-09-09 from https://developers.openai.com/api/docs/models/gpt-6-astra, whose list is $10 input, $1 cached input, $12.5 cache write and $50 output. The `cache_write` bucket carries the published cache-write price; the $10 rate applies only to input that is never written to cache, a split the three buckets do not express. Every rate doubles above 272K input tokens (output 1.5x) — the row records the base tier, as the catalog does for every tiered vendor.+- **`openai/gpt-6-astra` (provider `openrouter`)** — the same window, vision flag and $1 / $12.5 / $50 prices, with `client_type = "openai-responses"` and the preset OpenRouter base URL, matching its `openai/*` siblings. Read on 2026-09-09 from the models API and the per-model endpoints API: the default endpoint is OpenAI's own and reports `discount: 0`, so the list price is what OpenRouter bills. The endpoints API also publishes overrides above 272,000 prompt tokens, which the row does not record.+- **Routing and fast mode mirror AgentHub.** `resolveModelEnv` and `fastModeProtocol` gained the `gpt-6` substring beside `gpt-5.4` / `gpt-5.5` / `gpt-5.6`, so a `gpt-6*` id resolves the `OPENAI_*` pair and is offered the fast-mode toggle on the OpenAI protocol (`service_tier: "priority"`). That mirrors the routing AgentHub's GPT client takes on in its next release; until PenguinHarness moves to that release the id sits in the catalog without being routable at runtime, because `@prismshadow/agenthub` stays pinned at `^0.4.8` here and the bump is a separate change.+- Both rows sit where the catalog's ordering rule puts them — dictionary order by model id within a provider, newer series first — so `gpt-6-astra` precedes `gpt-5.6` and `openai/gpt-6-astra` precedes `openai/gpt-5.6-luna`. Tests pin both positions, both prices, the gateway row's context window and protocol pin, and the two routing answers.+- The bilingual `models` page names `gpt-6-astra` in its sample of the preset catalog. The `unified-llm-api` skill gained a GPT-6 row in its model-id table, `gpt-6` in its routing-order list, and `gpt-6` as the GPT client type that maps fast mode; the `agent-development` plugin's version moved to `2026-09-09.1` so installed copies are offered the update.++## Compatibility++Existing Projects do not pick the two rows up on their own: presets are copied into `.project_config.toml` when the Project is created, and nothing rewrites them afterwards. Use **sync presets** on the models page to bring them into a Project that already exists — it appends catalog entries the Project is missing and updates catalog-owned fields on the ones it has, deleting nothing and touching neither the stored default model nor any credential.diff --git a/changelog/unreleased/2026-09-09-gpt-6-astra.zh.md b/changelog/unreleased/2026-09-09-gpt-6-astra.zh.mdnew file mode 100644index 00000000..0ffa6bfc--- /dev/null+++ b/changelog/unreleased/2026-09-09-gpt-6-astra.zh.md@@ -0,0 +1,22 @@+# 内置目录收录 GPT-6 Astra:直连与 OpenRouter 各一条++- **Date:** 2026-09-09+- **Type:** feature+- **Scope:** `model-catalog`, `core`, `docs`, `skills`+- **PR:** [#654](https://github.com/Prism-Shadow/penguin-harness/pull/654)++[English](2026-09-09-gpt-6-astra.md)++内置模型目录两处收录了 OpenAI 的 GPT-6 Astra:直连 OpenAI 分组首位的 `gpt-6-astra`,以及 OpenRouter 中 `openai/*` 系列首位的 `openai/gpt-6-astra`。两条都是 1,050,000 Token 上下文,且支持图像输入。++## 细节++- **`gpt-6-astra`(provider `openai`)**——展示名 GPT-6 Astra,1,050,000 Token 上下文,`vision = true`,既不固定 `client_type` 也不固定 `base_url`:与其余直连 OpenAI 条目一样按 id 自动路由,凭证留空时回退到 `OPENAI_API_KEY` / `OPENAI_BASE_URL`。每百万 Token 价格为 $1 / $12.5 / $50(缓存读取 / 缓存写入 / 输出),于 2026-09-09 从 https://developers.openai.com/api/docs/models/gpt-6-astra 读取,其牌价为输入 $10、缓存命中输入 $1、缓存写入 $12.5、输出 $50。`cache_write` 一档记录官方公布的缓存写入价;$10 只适用于不写入缓存的输入,而三档分桶无法表达这一区分。输入超过 272K Token 后各档价格翻倍(输出为 1.5 倍)——与目录对所有分档厂商的处理一致,该行记录基础档。+- **`openai/gpt-6-astra`(provider `openrouter`)**——上下文窗口、视觉标记与 $1 / $12.5 / $50 的价格均与直连行相同,并按 `openai/*` 同组条目的惯例固定 `client_type = "openai-responses"` 与预置的 OpenRouter base URL。于 2026-09-09 从模型 API 与单模型 endpoints API 读取:默认端点即 OpenAI 自身,且 `discount: 0`,因此牌价就是 OpenRouter 的实际计费价。endpoints API 另有 prompt 超过 272,000 Token 后的 overrides,该行不予记录。+- **路由与快速模式与 AgentHub 保持一致。** `resolveModelEnv` 与 `fastModeProtocol` 在 `gpt-5.4` / `gpt-5.5` / `gpt-5.6` 之外新增 `gpt-6` 子串,因此 `gpt-6*` id 解析到 `OPENAI_*` 变量对,并可在 OpenAI 协议上使用快速模式开关(`service_tier: "priority"`)。这对应 AgentHub 的 GPT 客户端在下一个版本中采用的路由;在 PenguinHarness 升到该版本之前,这个 id 只存在于目录中、运行时尚不可路由,因为此处的 `@prismshadow/agenthub` 仍固定在 `^0.4.8`,版本提升是另一次改动。+- 两条都位于目录排序规则要求的位置——分组内按 model id 字典序排列、同一系列的新版本在前——因此 `gpt-6-astra` 位于 `gpt-5.6` 之前,`openai/gpt-6-astra` 位于 `openai/gpt-5.6-luna` 之前。测试固定了这两处位置、两处价格、网关条目的上下文窗口与协议固定值,以及两处路由结果。+- 中英文 `models` 页在预置目录的示例清单中列出 `gpt-6-astra`。`unified-llm-api` skill 的模型 id 表新增一行 GPT-6,路由顺序清单中加入 `gpt-6`,映射快速模式的 GPT 客户端类型也记为 `gpt-6`;`agent-development` 插件版本提升至 `2026-09-09.1`,已安装的副本因此会收到更新提示。++## 兼容性++既有 Project 不会自动获得这两条:预设是在 Project 创建时复制进 `.project_config.toml` 的,此后没有任何机制会改写它们。对已经存在的 Project,请在模型页面使用**同步预设**把它们引入——它只会追加 Project 缺少的目录条目、并更新已有条目中由目录所有的字段,不删除任何内容,也不会改动已存的默认模型与任何凭证。diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.tsindex 3d500e7b..df1260b5 100644--- a/packages/core/src/state/model-catalog.ts+++ b/packages/core/src/state/model-catalog.ts@@ -7,7 +7,8 @@* 2026-08-21; the TokenDance group: 2026-08-25, its glm-5.3-flash row: 2026-08-26, its* qwen3.8-flash row: 2026-08-27 and its running promotions plus the hy4-preview rows* (TokenDance + OpenRouter): 2026-08-28; the GLM-5.3 Flash rows (direct + OpenRouter) and- * the direct qwen3.8-flash: 2026-08-26 — per each provider's docs).+ * the direct qwen3.8-flash: 2026-08-26; the GPT-6 Astra rows (direct + OpenRouter):+ * 2026-09-09 — 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.*@@ -690,6 +691,21 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [// The openai/* rows below mirror the direct OpenAI group one-for-one, and are the only// gateway rows on the Responses protocol (see the block comment). Their context windows// are OpenRouter's published 1,050,000 / 400,000, matching the direct rows.+ {+ // Read 2026-09-09 from the models API and the per-model endpoints API: the default+ // endpoint is OpenAI's own, listed at $10 input / $1 cached input / $12.5 cache write /+ // $50 output with `discount: 0`, so the list price is what OpenRouter bills. The+ // endpoints API also publishes `overrides` above 272,000 prompt tokens (2x prompt and+ // cache, 1.5x completion); as on the direct row, only the base tier is recorded.+ modelId: "openai/gpt-6-astra",+ displayName: "GPT-6 Astra",+ provider: "openrouter",+ contextWindow: 1050000,+ pricing: usd(1, 12.5, 50),+ supportsVision: true,+ clientType: "openai-responses",+ baseUrl: OPENROUTER_BASE_URL,+ },{// The 50% promotion this row used to store has ended: OpenRouter now bills the full// $0.20/$1.20 rate (endpoints API `discount: 0`), so the stored rates doubled on the@@ -1502,13 +1518,28 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [supportsVision: true,},// -- OpenAI (official USD pricing) --+ {+ // OpenAI's list price (developers.openai.com/api/docs/models/gpt-6-astra, read+ // 2026-09-09) is $10 input / $1 cached input / $12.5 cache write / $50 output. Per the+ // bucket convention at the top of this file, cache_write carries the published+ // cache-write price of 12.5; the $10 rate applies only to input that is not written to+ // cache, a split the three buckets do not express. Every rate doubles above 272K input+ // tokens (output 1.5x) — the base tier is what this row records, as the header says.+ // Served by AgentHub's gpt6 client from the release that ships it.+ modelId: "gpt-6-astra",+ displayName: "GPT-6 Astra",+ provider: "openai",+ contextWindow: 1050000,+ pricing: usd(1, 12.5, 50),+ supportsVision: true,+ },{// The bare gpt-5.6 id routes to gpt-5.6-sol upstream and is priced as that tier, so the// row names the Sol codename its siblings and the openai/gpt-5.6-sol row already show —// the id stays bare, only the label says which variant this is; served by AgentHub- // 0.4.2's native gpt-5.6 client. The three rows here mirror the openai/*- // OpenRouter rows above, which carry the gateway's (currently discounted) rates instead- // of this list price.+ // 0.4.2's native gpt-5.6 client. This row and the two gpt-5.6 rows below mirror the+ // openai/gpt-5.6-* OpenRouter rows above, which carry the gateway's (currently+ // discounted) rates instead of this list price.modelId: "gpt-5.6",displayName: "GPT-5.6 Sol",provider: "openai",@@ -1720,7 +1751,12 @@ export function resolveModelEnv(modelId: string, clientType?: string): ModelEnvI) {return env("ANTHROPIC");}- if (t.includes("gpt-5.4") || t.includes("gpt-5.5") || t.includes("gpt-5.6")) {+ if (+ t.includes("gpt-5.4") ||+ t.includes("gpt-5.5") ||+ t.includes("gpt-5.6") ||+ t.includes("gpt-6")+ ) {return env("OPENAI");}// agenthub 0.4.2's unified GLM client serves the whole glm-5 series (5.3 included).@@ -1746,7 +1782,7 @@ export function resolveModelEnv(modelId: string, clientType?: string): ModelEnvI/*** The wire protocol that would carry AgentHub's `fast_mode` for a model: `"openai"` for the- * OpenAI-protocol clients (openai_chat / openai_responses / gpt5_6 / minimax_m3), which send+ * OpenAI-protocol clients (openai_chat / openai_responses / gpt6 / minimax_m3), which send* `service_tier: "priority"`, and `"anthropic"` for the Anthropic-protocol ones (ant_messages* / claude5), which send `speed: "fast"` plus the `fast-mode-2026-02-01` beta header. The two* differ in what the user must be warned about, not just in wire shape (see fastModeProtocol).@@ -1809,7 +1845,14 @@ export function fastModeProtocol(if (modelId.includes("4-6")) return undefined;return "anthropic";}- if (t.includes("gpt-5.4") || t.includes("gpt-5.5") || t.includes("gpt-5.6")) return "openai";+ if (+ t.includes("gpt-5.4") ||+ t.includes("gpt-5.5") ||+ t.includes("gpt-5.6") ||+ t.includes("gpt-6")+ ) {+ return "openai";+ }if (t.includes("glm-5")) return undefined;if (t.includes("kimi-k3") || t.includes("kimi-k2.5") || t.includes("kimi-k2.6")) return undefined;if (t.includes("deepseek-v4")) return undefined;diff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.tsindex 610eb88a..9b270b59 100644--- a/packages/core/test/model-catalog.test.ts+++ b/packages/core/test/model-catalog.test.ts@@ -200,8 +200,9 @@ describe("model-catalog", () => {it("gateway models (OpenRouter / SiliconFlow / Qwen Token Plan): openai protocol + preset base URL; env fallback is OPENAI_API_KEY", () => {const or = MODEL_CATALOG.filter((m) => m.provider === "openrouter");- // Dictionary order, newer versions of a series first (gpt-5.6-* before gpt-5.5,- // opus-4.8 before 4.7) — precomputed in the catalog, no runtime sorting.+ // Dictionary order, newer versions of a series first (gpt-6-* before gpt-5.6-*,+ // gpt-5.6-* before gpt-5.5, opus-4.8 before 4.7) — precomputed in the catalog, no+ // runtime sorting.expect(or.map((m) => m.modelId)).toEqual(["anthropic/claude-fable-5","anthropic/claude-opus-5",@@ -221,6 +222,7 @@ describe("model-catalog", () => {"moonshotai/kimi-k3","moonshotai/kimi-k2.6","nvidia/nemotron-3-ultra-550b-a55b:free",+ "openai/gpt-6-astra","openai/gpt-5.6-luna","openai/gpt-5.6-sol","openai/gpt-5.6-terra",@@ -671,6 +673,7 @@ describe("model-catalog", () => {// `gpt-5.6` id is the same tier OpenRouter spells `openai/gpt-5.6-sol`, so it displays// that codename too rather than leaving the variant unnamed.for (const [directProvider, directId, gatewayProvider, gatewayId] of [+ ["openai", "gpt-6-astra", "openrouter", "openai/gpt-6-astra"],["openai", "gpt-5.6", "openrouter", "openai/gpt-5.6-sol"],["openai", "gpt-5.6-luna", "openrouter", "openai/gpt-5.6-luna"],["openai", "gpt-5.6-terra", "openrouter", "openai/gpt-5.6-terra"],@@ -743,6 +746,7 @@ describe("model-catalog", () => {// gains a model.const direct = MODEL_CATALOG.filter((m) => m.provider === "openai").map((m) => m.modelId);expect(direct).toEqual([+ "gpt-6-astra","gpt-5.6","gpt-5.6-luna","gpt-5.6-terra",@@ -764,8 +768,9 @@ describe("model-catalog", () => {// Because it is that tier, the alias is labelled with the sol codename its siblings and// its gateway listing carry; the id users send stays bare.expect(catalogEntryFor("openai", "gpt-5.6")!.displayName).toBe("GPT-5.6 Sol");- // Direct rows are auto-routed by id (AgentHub 0.4.2's native gpt-5.6 client); only the- // gateway rows pin a protocol, and they pin Responses.+ // Direct rows are auto-routed by id (AgentHub 0.4.2's native gpt-5.6 client, and its gpt6+ // client for the gpt-6 ids from the release that ships it); only the gateway rows pin a+ // protocol, and they pin Responses.for (const m of MODEL_CATALOG.filter((m) => m.provider === "openai")) {expect(m.clientType, m.modelId).toBeUndefined();expect(m.baseUrl, m.modelId).toBeUndefined();@@ -777,6 +782,10 @@ describe("model-catalog", () => {const p = catalogEntryFor(provider, id)!.pricing!;return [p.cache_read, p.cache_write, p.output];};+ // GPT-6 Astra's cache_write bucket carries OpenAI's published $12.5 cache-write price+ // rather than the $10 input rate: the buckets have no slot for input that is never+ // written to cache.+ expect(price("openai", "gpt-6-astra")).toEqual([1, 12.5, 50]);expect(price("openai", "gpt-5.6")).toEqual([0.5, 5, 30]);expect(price("openai", "gpt-5.6-terra")).toEqual([0.2, 2, 12]);expect(price("openai", "gpt-5.6-luna")).toEqual([0.02, 0.2, 1.2]);@@ -786,6 +795,10 @@ describe("model-catalog", () => {expect(price("openrouter", "openai/gpt-5.6-sol")).toEqual([0.25, 3.125, 15]);expect(price("openrouter", "openai/gpt-5.6-terra")).toEqual([0.2, 2.5, 12]);expect(price("openrouter", "openai/gpt-5.6-luna")).toEqual([0.02, 0.25, 1.2]);+ // GPT-6 Astra runs no promotion (`discount: 0`) and its default endpoint is OpenAI's own,+ // so every bucket matches the direct row.+ expect(price("openrouter", "openai/gpt-6-astra")).toEqual([1, 12.5, 50]);+ expect(catalogEntryFor("openrouter", "openai/gpt-6-astra")!.contextWindow).toBe(1050000);// The 5.4/5.5 rows run no promotion, so gateway and direct agree except on cache_write,// where the gateway publishes GPT's genuine 1.25x write premium and the direct rows use// the standard input price.@@ -827,6 +840,9 @@ describe("resolveModelEnv (PRN-021: env fallback resolved by AgentHub routing ruexpect(resolveModelEnv("gpt-5.5-pro")?.envKey).toBe("OPENAI_API_KEY");// The GPT-5.6 generation (agenthub 0.4.2) reads the same OPENAI_* pair.expect(resolveModelEnv("gpt-5.6-luna")?.envKey).toBe("OPENAI_API_KEY");+ // So does the GPT-6 generation: agenthub routes the gpt-6 substring to its gpt6 client.+ expect(resolveModelEnv("gpt-6-astra")?.envKey).toBe("OPENAI_API_KEY");+ expect(resolveModelEnv("gpt-6-astra")?.envBaseUrlKey).toBe("OPENAI_BASE_URL");expect(resolveModelEnv("glm-5.2")?.envKey).toBe("ZAI_API_KEY");// glm-5.3 is served by agenthub 0.4.2's unified GLM client (same ZAI_* pair).expect(resolveModelEnv("glm-5.3")?.envKey).toBe("ZAI_API_KEY");@@ -953,6 +969,8 @@ describe("fastModeProtocol (which models may be offered AgentHub's fast_mode, anexpect(fastModeProtocol("gpt-5.5-pro")).toBe("openai");expect(fastModeProtocol("gpt-5.4-mini")).toBe("openai");expect(fastModeProtocol("gpt-5.6")).toBe("openai");+ // The gpt-6 branch sits alongside them: agenthub's gpt6 client maps fast mode too.+ expect(fastModeProtocol("gpt-6-astra")).toBe("openai");});it("Anthropic-protocol clients carry it as speed=fast", () => {diff --git a/packages/docs/content/models.en.md b/packages/docs/content/models.en.mdindex d4958d63..2c85c1c8 100644--- a/packages/docs/content/models.en.md+++ b/packages/docs/content/models.en.md@@ -78,7 +78,7 @@ The gateway groups (openrouter / fireworks / siliconflow / tokendance / qwen-payThe 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-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp (the DeepSeek group's only vision-capable model), MiniMax-M3, gemini-3.7-flash, claude-opus-5 / claude-opus-4-8 / claude-sonnet-5, gpt-5.6 / gpt-5.5, glm-5.3 / glm-5.3-flash, kimi-k3, qwen3.8-max / qwen3.8-flash (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%` tag 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-v4-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp (the DeepSeek group's only vision-capable model), MiniMax-M3, gemini-3.7-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 (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%` tag 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.TokenDance rows record the gateway's list price and, where a promotion is running, the rate off it. Six models are discounted today — `deepseek-v4-flash-0731`, `deepseek-v4-pro-0813` and `glm-5.3-flash` 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.diff --git a/packages/docs/content/models.zh.md b/packages/docs/content/models.zh.mdindex aca4dec8..09d9fa65 100644--- a/packages/docs/content/models.zh.md+++ b/packages/docs/content/models.zh.md@@ -78,7 +78,7 @@ api_key = "sk-..."预置目录还收录了 OpenRouter 的免费档:`:free` 模型变体 `nvidia/nemotron-3-ultra-550b-a55b:free` 与统一路由 `openrouter/free`(Free Models Router),零成本可用,但受 OpenRouter 免费档速率限制与数据政策约束。-预置目录中的部分模型:deepseek-v4-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp(DeepSeek 分组中唯一支持图像输入的模型)、MiniMax-M3、gemini-3.7-flash、claude-opus-5 / claude-opus-4-8 / claude-sonnet-5、gpt-5.6 / gpt-5.5、glm-5.3 / glm-5.3-flash、kimi-k3、qwen3.8-max / qwen3.8-flash 等(非完整清单)。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-v4-pro / deepseek-v4-flash / deepseek-v4-flash-vision-exp(DeepSeek 分组中唯一支持图像输入的模型)、MiniMax-M3、gemini-3.7-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 等(非完整清单)。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 都能携带图片。三条不一致的是价格:每一条都记录各自卖家的收费,因此促销期间三者不同。TokenDance 分组的条目记录该网关的牌价,并在有促销时记录折扣率。当前有六个模型处于折扣中——`deepseek-v4-flash-0731`、`deepseek-v4-pro-0813` 与 `glm-5.3-flash` 五折,`kimi-k3` 八折,`glm-5.3` 与 `qwen3.8-max` 九折。它们的模型卡片显示当前实际计费的那个价格,并以徽标标出折扣率;新建 Project 预置的是**折后价**,因此成本中心按网关实际收费计价。自行修改过价格的条目不再显示折扣标记:此时那个数字属于你,而不是网关。diff --git a/plugins/agent-development/plugin.json b/plugins/agent-development/plugin.jsonindex f36d4e5f..38c9fce6 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-02.1",+ "version": "2026-09-09.1","category": "ai-app-development"}diff --git a/plugins/agent-development/skills/unified-llm-api/SKILL.md b/plugins/agent-development/skills/unified-llm-api/SKILL.mdindex 40370310..2fd3b649 100644--- a/plugins/agent-development/skills/unified-llm-api/SKILL.md+++ b/plugins/agent-development/skills/unified-llm-api/SKILL.md@@ -53,6 +53,7 @@ Use exact model ids. If an id is not in the table below and the user has not giv| Gemini embedding | `gemini-embedding-2` | — || Claude 5 | `claude-fable-5`, `claude-opus-5`, `claude-sonnet-5` | OpenRouter `anthropic/claude-fable-5`, `anthropic/claude-opus-5`, `anthropic/claude-sonnet-5` || Claude 4 | `claude-sonnet-4-6`, `claude-opus-4-7`, `claude-opus-4-8` | OpenRouter `anthropic/claude-opus-4.8`, `anthropic/claude-opus-4.7` |+| GPT-6 | `gpt-6-astra` | OpenRouter `openai/gpt-6-astra` || GPT-5.6 | `gpt-5.6` (routes to sol), `gpt-5.6-terra`, `gpt-5.6-luna` | OpenRouter `openai/gpt-5.6-sol`, `openai/gpt-5.6-terra`, `openai/gpt-5.6-luna` || GPT-5.5 / 5.4 | `gpt-5.5`, `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano` | OpenRouter `openai/gpt-5.5`, `openai/gpt-5.5-pro`, `openai/gpt-5.4`, `openai/gpt-5.4-mini`, `openai/gpt-5.4-nano`, `openai/gpt-5.4-pro` || OpenAI embedding | `text-embedding-3-small`, `text-embedding-3-large` | — |@@ -100,7 +101,7 @@ The registry is the curated current line-up, so prefer it when picking a model o## Routing and credentials-- Without `clientType`, the client auto-routes by model id substring, in this order: `minimax-m3` (exact), `gemini-3*` / `gemini-embedding`, `claude` 4-6/4-7/4-8/-5, `gpt-5.4`/`gpt-5.5`/`gpt-5.6`, `glm-5` (whole series, 5.3 included), `kimi-k3`/`kimi-k2.5`/`kimi-k2.6`, `deepseek-v4`, `ant-messages`, `openai-responses`, `openai`+`embedding` (embeddings), `openai` (chat). Ids matching none of these throw. Most gateway variants in the table above hit the same substrings, so they route to the right family — just set `baseUrl` to the gateway endpoint.+- Without `clientType`, the client auto-routes by model id substring, in this order: `minimax-m3` (exact), `gemini-3*` / `gemini-embedding`, `claude` 4-6/4-7/4-8/-5, `gpt-5.4`/`gpt-5.5`/`gpt-5.6`/`gpt-6`, `glm-5` (whole series, 5.3 included), `kimi-k3`/`kimi-k2.5`/`kimi-k2.6`, `deepseek-v4`, `ant-messages`, `openai-responses`, `openai`+`embedding` (embeddings), `openai` (chat). Ids matching none of these throw. Most gateway variants in the table above hit the same substrings, so they route to the right family — just set `baseUrl` to the gateway endpoint.- Three generic protocol clients cover everything else (all take `baseUrl` + `apiKey`):- `clientType: "openai-chat"` — any OpenAI Chat Completions compatible endpoint (gateway models, Qwen via OpenRouter/SiliconFlow or DashScope `https://dashscope.aliyuncs.com/compatible-mode/v1`, local vLLM, …). Renamed from `openai` in AgentHub 0.4.2; the bare `openai` string still routes as a deprecated alias.- `clientType: "openai-responses"` — OpenAI Responses-compatible endpoints (OpenAI, OpenRouter, DeepSeek, Z.AI, MiniMax all serve one).@@ -145,7 +146,7 @@ try {- `temperature` is rejected outright by Gemini 3.6/3.7 — those generations deprecated the sampling parameters, so the client refuses them instead of sending a value the API ignores. GPT-5.5/5.6, the whole Claude 4.6+ family (4.6 included since AgentHub 0.4.2), DeepSeek V4, Kimi K2.6 and Kimi K3 accept only the protocol default `1.0` and reject any other value. Gemini 3, GLM and the generic protocol clients (`openai-chat` / `openai-responses` / `ant-messages`) pass it through.- `tool_choice`: `"auto"` is safe everywhere. Claude accepts a single forced tool name; DeepSeek V4 and Kimi K2.6 allow `"auto"` / `"none"`; Kimi K3 adds `"required"` but refuses a specific tool (K2.x also rejects `"required"`); GLM only accepts `"auto"`.- `prompt_caching`: every client accepts `PromptCaching.ENABLE` and rejects the other values — caching is on by default and Kimi K3 caches context automatically.-- `fast_mode` (`UniConfig`, AgentHub 0.4.2): fast processing at premium pricing. OpenAI-protocol clients (`openai-chat`, `openai-responses`, `gpt-5.6`, `minimax-m3`) map it to `service_tier: "priority"`; Anthropic-protocol clients (`ant-messages`, `claude-5`) map it to `speed: "fast"` with a beta header (an Anthropic research preview limited to Claude Opus 5 / Opus 4.8 — organizations without access get a 429). Clients without a fast tier (Gemini, GLM, Kimi, DeepSeek, embeddings, Claude 4.6 models) raise `UnsupportedParameterError`; DeepSeek and Z.AI's OpenAI-compatible endpoints simply ignore the tier.+- `fast_mode` (`UniConfig`, AgentHub 0.4.2): fast processing at premium pricing. OpenAI-protocol clients (`openai-chat`, `openai-responses`, `gpt-6`, `minimax-m3`) map it to `service_tier: "priority"`; Anthropic-protocol clients (`ant-messages`, `claude-5`) map it to `speed: "fast"` with a beta header (an Anthropic research preview limited to Claude Opus 5 / Opus 4.8 — organizations without access get a 429). Clients without a fast tier (Gemini, GLM, Kimi, DeepSeek, embeddings, Claude 4.6 models) raise `UnsupportedParameterError`; DeepSeek and Z.AI's OpenAI-compatible endpoints simply ignore the tier.Leave a parameter unset and the protocol default applies, which is the portable choice when a script must run against several families.