From 45f916cd1e0548a02b7bc960040d205fa49747c4 Mon Sep 17 00:00:00 2001 From: Yaowei Zheng Date: Tue, 4 Aug 2026 18:55:35 +0800 Subject: [PATCH] feat(models): add OpenRouter qwen/qwen3.8-max to the preset catalog (#178) Co-authored-by: Claude Fable 5 --- README.md | 2 +- README.zh.md | 2 +- packages/core/src/state/model-catalog.ts | 13 ++++++++++++- packages/core/test/model-catalog.test.ts | 1 + packages/skills/skills/agenthub-models/SKILL.md | 5 +++-- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f22b158..298fa2f 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Four Skill groups ship in the box ([docs](https://penguin.ooo/docs/skills)); age | Kimi K3 | Moonshot AI, OpenRouter, Qwen Pay-As-You-Go | | GLM 5.2 | Z.AI, OpenRouter, Fireworks AI, SiliconFlow, Qwen Token Plan, Qwen Pay-As-You-Go | | Hunyuan 3 | OpenRouter | -| Qwen 3.8 Max | Qwen Token Plan, Qwen Pay-As-You-Go | +| Qwen 3.8 Max | Qwen Token Plan, Qwen Pay-As-You-Go, OpenRouter | | GPT 5.6 | OpenRouter | | Gemini 3.6 Flash | Google Gemini, OpenRouter | | Claude 5 | Anthropic, OpenRouter | diff --git a/README.zh.md b/README.zh.md index b446036..c55ae68 100644 --- a/README.zh.md +++ b/README.zh.md @@ -90,7 +90,7 @@ https://github.com/user-attachments/assets/aec49ae9-b743-467b-b247-37bedfeaa36e | Kimi K3 | Moonshot AI, OpenRouter, Qwen Pay-As-You-Go | | GLM 5.2 | Z.AI, OpenRouter, Fireworks AI, SiliconFlow, Qwen Token Plan, Qwen Pay-As-You-Go | | Hunyuan 3 | OpenRouter | -| Qwen 3.8 Max | Qwen Token Plan, Qwen Pay-As-You-Go | +| Qwen 3.8 Max | Qwen Token Plan, Qwen Pay-As-You-Go, OpenRouter | | GPT 5.6 | OpenRouter | | Gemini 3.6 Flash | Google Gemini, OpenRouter | | Claude 5 | Anthropic, OpenRouter | diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.ts index 072676e..3c05ac9 100644 --- a/packages/core/src/state/model-catalog.ts +++ b/packages/core/src/state/model-catalog.ts @@ -223,7 +223,8 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [ // one pass on 2026-08-03 from the models API (/api/v1/models): cache_read stores the // published input_cache_read (falling back to the input price for the few rows without // one — qwen3.6-35b-a3b and the :free rows); cache_write stores input_cache_write only - // when it is a genuine per-token write premium (the Anthropic and GPT rows, 1.25x input) — + // when it is a genuine per-token write premium (the Anthropic, GPT and qwen3.8-max rows, + // 1.25x input) — // Gemini's field is an hourly cache-STORAGE rate, not a per-token price, so those rows // keep the input price — and otherwise also carries the input price. The :free tier and // the openrouter/free Free Models Router store a genuine $0 price (not "unknown"), so @@ -459,6 +460,16 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [ clientType: "openai", baseUrl: OPENROUTER_BASE_URL, }, + { + modelId: "qwen/qwen3.8-max", + displayName: "Qwen 3.8 Max", + provider: "openrouter", + contextWindow: 1000000, + pricing: usd(0.25, 2.5, 6), + supportsVision: true, + clientType: "openai", + baseUrl: OPENROUTER_BASE_URL, + }, { // Neither the OpenRouter page nor AgentHub's registry publishes a cache price for this // model, so cache_read repeats the input price (no discount assumed). diff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.ts index 7211cf1..4c3e682 100644 --- a/packages/core/test/model-catalog.test.ts +++ b/packages/core/test/model-catalog.test.ts @@ -171,6 +171,7 @@ describe("model-catalog", () => { "openai/gpt-5.6-terra", "openai/gpt-5.5", "openrouter/free", + "qwen/qwen3.8-max", "qwen/qwen3.6-35b-a3b", "stepfun/step-3.7-flash", "tencent/hy3", diff --git a/packages/skills/skills/agenthub-models/SKILL.md b/packages/skills/skills/agenthub-models/SKILL.md index a49ef33..505e774 100644 --- a/packages/skills/skills/agenthub-models/SKILL.md +++ b/packages/skills/skills/agenthub-models/SKILL.md @@ -3,8 +3,8 @@ name: agenthub-models description: Call model APIs through @prismshadow/agenthub — streaming text generation, image generation, speech synthesis, embeddings and the supported-model registry with one client. short_description: Call model APIs with one AgentHub client. short_description_zh: 用一个 AgentHub 客户端调用模型 API。 -version: 9 -updated: 2026-07-22T00:00:00Z +version: 10 +updated: 2026-08-04T09:33:09Z --- # AgentHub Model APIs @@ -63,6 +63,7 @@ Use exact model ids. If an id is not in the table below and the user has not giv | DeepSeek V4 | `deepseek-v4-pro`, `deepseek-v4-flash` | OpenRouter `deepseek/deepseek-v4-pro`, `deepseek/deepseek-v4-flash`, `deepseek/deepseek-v4-flash-0731`; SiliconFlow `deepseek-ai/DeepSeek-V4-Pro`, `deepseek-ai/DeepSeek-V4-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` | OpenRouter `z-ai/glm-5.1`; SiliconFlow `Pro/zai-org/GLM-5.1` | +| Qwen 3.8 Max | — | OpenRouter `qwen/qwen3.8-max` | | Qwen 3.6 | — | OpenRouter `qwen/qwen3.6-35b-a3b`; SiliconFlow `Qwen/Qwen3.6-35B-A3B` | The image endpoint dropped its preview suffix: `gemini-3.1-flash-image-preview` is deprecated, use `gemini-3.1-flash-image`.