From 62e44c48385dd9a70f86de49151680b000662ff0 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 10 Jul 2026 08:49:48 +0800 Subject: [PATCH] feat(pricing): seed Tencent Hunyuan Hy3 pricing Add Hunyuan Hy3 (released 2026-07-06, 256K context) to seed_model_pricing under both the hunyuan-hy3 and hy3 ids, since the upstream billing id isn't yet confirmed and one of the two should match logged usage. Prices come from Tencent's launch-day list price (CNY 1 / 4 / 0.25 per 1M input / output / cache-hit), converted at 1 USD ~= 7.14: 0.14 / 0.56 / 0.035. cache_write is "0" (no published write rate). Hy3 actually uses input-length tiered billing (<16K / 16-32K / >=32K); the single-price table holds the lowest tier, so long-context requests are under-billed until this is revisited against the official billing page. New model, so seed only. --- src-tauri/src/database/schema.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-tauri/src/database/schema.rs b/src-tauri/src/database/schema.rs index 1c119995a..9fd8c1ae2 100644 --- a/src-tauri/src/database/schema.rs +++ b/src-tauri/src/database/schema.rs @@ -1896,6 +1896,9 @@ impl Database { "0.19", "0", ), + // 腾讯混元 (Tencent Hunyuan)(官方 CNY 1/4/0.25 按 1 USD ≈ 7.14 折算;Hy3 阶梯计价取最低档) + ("hunyuan-hy3", "Hunyuan Hy3", "0.14", "0.56", "0.035", "0"), + ("hy3", "Hunyuan Hy3", "0.14", "0.56", "0.035", "0"), // MiniMax 系列 ("minimax-m2.1", "MiniMax M2.1", "0.27", "0.95", "0.03", "0"), (