feat(models): add OpenRouter qwen/qwen3.8-max to the preset catalog (#178)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Yaowei Zheng
2026-08-04 18:55:35 +08:00
committed by GitHub
parent 6fcf6e53f0
commit 45f916cd1e
5 changed files with 18 additions and 5 deletions
+12 -1
View File
@@ -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).