A local-first multi-agent app development platform, built on PenguinHarness
fix(model-catalog): the OpenRouter GLM-5.3 Flash note names the promotion it is priced at (#745)
Yaowei Zheng85fa4b401c99
diff --git a/changelog/unreleased/2026-09-16-openrouter-glm-5.3-flash-note.md b/changelog/unreleased/2026-09-16-openrouter-glm-5.3-flash-note.mdnew file mode 100644index 00000000..2a5fdab3--- /dev/null+++ b/changelog/unreleased/2026-09-16-openrouter-glm-5.3-flash-note.md@@ -0,0 +1,10 @@+# The OpenRouter GLM-5.3 Flash row names the promotion it is priced at++- **Date:** 2026-09-16+- **Type:** fix+- **Scope:** `model-catalog`+- **PR:** [#745](https://github.com/Prism-Shadow/penguin-harness/pull/745)++[中文版](2026-09-16-openrouter-glm-5.3-flash-note.zh.md)++The note on OpenRouter's `z-ai/glm-5.3-flash` row attributed its half price to Z.AI's own promotion through 2026-09-09 and said to restore the list price when that ended. Z.AI's promotion has ended, but the row's price is still what OpenRouter's default endpoint bills: DeepInfra (fp4) runs its own 50% discount. The note now names that endpoint, records the 2026-09-16 re-read, and keeps the list rates to restore when DeepInfra's promotion ends. The stored price is unchanged.diff --git a/changelog/unreleased/2026-09-16-openrouter-glm-5.3-flash-note.zh.md b/changelog/unreleased/2026-09-16-openrouter-glm-5.3-flash-note.zh.mdnew file mode 100644index 00000000..684361bf--- /dev/null+++ b/changelog/unreleased/2026-09-16-openrouter-glm-5.3-flash-note.zh.md@@ -0,0 +1,10 @@+# OpenRouter GLM-5.3 Flash 条目注明其价格所依据的促销++- **Date:** 2026-09-16+- **Type:** fix+- **Scope:** `model-catalog`+- **PR:** [#745](https://github.com/Prism-Shadow/penguin-harness/pull/745)++[English](2026-09-16-openrouter-glm-5.3-flash-note.md)++OpenRouter `z-ai/glm-5.3-flash` 条目的注释把它的半价归因于 Z.AI 自己截至 2026-09-09 的促销,并写明到期后恢复牌价。Z.AI 的促销确已结束,但该条目的价格仍是 OpenRouter 默认 endpoint 的实际计费价:DeepInfra(fp4)在跑自己的五折促销。注释改为点名这个 endpoint、记下 2026-09-16 的复核,并保留在 DeepInfra 促销结束后应恢复的牌价。存储的价格不变。diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.tsindex c8ed9db7..5a57397c 100644--- a/packages/core/src/state/model-catalog.ts+++ b/packages/core/src/state/model-catalog.ts@@ -17,7 +17,8 @@* group (V4.1 Flash released as `deepseek-flash`, the two V4 Flash ids retired into it —* `deepseek-v4-flash` text-only even so, AgentHub's DeepSeek client refusing image parts for* that id), 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).+ * plus its Doubao Seed display names: 2026-09-10; the OpenRouter z-ai/glm-5.3-flash row:+ * 2026-09-16 — 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.*@@ -1071,11 +1072,13 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [baseUrl: OPENROUTER_BASE_URL,},{- // The gateway listing of the direct glm-5.3-flash row below, sitting on a 50%-off ZAI- // promotion through 2026-09-09 16:00 UTC (Z.AI's own price list names the same window as- // 24:00 on 2026-09-09, UTC+8). Stored at the discounted rate the gateway actually bills;- // when it lapses, restore 0.03 / 0.15 / 0.5. The listing takes text, images and video,- // and the generic Responses client it pins carries image parts through.+ // The gateway listing of the direct glm-5.3-flash row below. Stored at the rate OpenRouter's+ // default endpoint bills: DeepInfra (fp4), running `discount: 0.5` on the 0.03 / 0.15 / 0.5+ // list (endpoints API, re-read 2026-09-16) — restore the list rates when that endpoint's+ // promotion ends. Z.AI's own 50% promotion is a different one: it ended at 2026-09-09+ // 16:00 UTC, and the Z.AI endpoint on OpenRouter bills the list price since. The listing+ // takes text, images and video, and the generic Responses client it pins carries image+ // parts through.modelId: "z-ai/glm-5.3-flash",displayName: "GLM-5.3 Flash",provider: "openrouter",@@ -1881,10 +1884,10 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [},{// Z.AI's price list (docs.z.ai/guides/overview/pricing) publishes $0.15 input / $0.03- // cached input / $0.50 output; a 50% promotion halves all three through 24:00 on+ // cached input / $0.50 output; a 50% promotion halved all three through 24:00 on// 2026-09-09 (UTC+8). Direct-vendor rows record the vendor's list price, so that is what- // is stored here — the OpenRouter z-ai/glm-5.3-flash row above carries the promotional- // rate it is actually billed at.+ // is stored here — the OpenRouter z-ai/glm-5.3-flash row above carries the rate its+ // default endpoint bills, which runs a promotion of its own.//// The model is natively multimodal (docs.z.ai/guides/vlm/glm-5.3-flash: images, video// and files), and it is the one GLM id whose images AgentHub's GLM client forwards — asdiff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.tsindex 6689189a..96877386 100644--- a/packages/core/test/model-catalog.test.ts+++ b/packages/core/test/model-catalog.test.ts@@ -833,7 +833,7 @@ describe("model-catalog", () => {expect(glm53.pricing).toEqual(catalogEntryFor("zhipu", "glm-5.2")!.pricing);// GLM-5.3 Flash is listed both directly and on OpenRouter, and the two rows deliberately// disagree on price: the direct row keeps Z.AI's list price while the gateway row stores- // the 50%-off rate OpenRouter actually bills through 2026-09-09, so the gateway figures+ // the 50%-off rate OpenRouter's default endpoint (DeepInfra) bills, so the gateway figures// are exactly half the direct ones.const glm53f = catalogEntryFor("zhipu", "glm-5.3-flash")!;expect([glm53f.contextWindow, glm53f.supportsVision]).toEqual([1000000, true]);