Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 39 additions & 4 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,13 @@ vision = false
[[models]]
provider = "openai"
model = "gpt-5.6-sol"
# 官方价(2026-10-16 核实,https://platform.openai.com/docs/pricing):短上下文促销价 $4.00 /
# 缓存命中 $0.40 / 输出 $20.00;该促销价至少有效到 2026-11-21,到期后按官网重新核对。长上下文档
# 另有 $8.00 / $0.80 / $30.00 —— 本仓价格字段只有一组、不区分档位(见 rant 2026-10-16T14:08:14.003832)
currency = "USD"
input_per_m = 5.0
cache_hit_input_per_m = 0.5
output_per_m = 30.0
input_per_m = 4.0
cache_hit_input_per_m = 0.4
output_per_m = 20.0
context_length = 1050000
max_output = 0
vision = false
Expand All @@ -368,9 +371,25 @@ vision = false
[[models]]
provider = "xai"
model = "grok-4.6"
# 官方价(2026-10-16 核实,https://docs.x.ai/developers/pricing):$2.00 / 缓存命中 $0.50 / $6.00
# (500k 上下文)。缓存命中价原记 0(=命中一分钱不收、持续少收),本次更正为官网值
# —— rant 2026-10-16T14:08:13.993557
currency = "USD"
input_per_m = 2.0
cache_hit_input_per_m = 0.0
cache_hit_input_per_m = 0.5
output_per_m = 6.0
context_length = 500000
max_output = 0
vision = false

[[models]]
provider = "xai"
model = "grok-4.7"
# 官网现役旗舰(2026-10-16 核实,https://docs.x.ai/developers/pricing):$2.00 / 缓存命中 $0.50 /
# $6.00,500k 上下文;≥200k 长档为 $4.00 / $1.00 / $12.00(本仓价格字段不分档)
currency = "USD"
input_per_m = 2.0
cache_hit_input_per_m = 0.5
output_per_m = 6.0
context_length = 500000
max_output = 0
Expand Down Expand Up @@ -441,5 +460,21 @@ context_length = 1048576
max_output = 0
vision = false

[[models]]
provider = "aliyun-bailian"
model = "qwen3.8-flash"
# 官网现役轻量档(2026-10-16 核实,https://help.aliyun.com/zh/model-studio/model-pricing):
# 0<Token≤1M 输入 0.8 元 / 输出 2.7 元。⚠️ 缓存命中价官网价格表未给数(该行只写「上下文缓存
# 享有折扣」),而缓存计费页明说 qwen3.8 系列不适用通用折扣比例、要查百炼控制台
# (https://help.aliyun.com/zh/model-studio/context-cache)⇒ 暂记 0(=命中免费、会少收),待补
# —— rant 2026-10-16T14:08:13.993557
currency = "CNY"
input_per_m = 0.8
cache_hit_input_per_m = 0.0
output_per_m = 2.7
context_length = 1048576
max_output = 0
vision = false

# 读图模型:DeepSeek 的视觉能力已并入 `deepseek-flash`(V4.1-Flash 原生多模态),
# 旧的 `deepseek-v4-flash-vision-exp` 已下线并被官方路由到 V4.1-Flash ⇒ 此处不再单列。
2 changes: 1 addition & 1 deletion src/catalog_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const APP_JS: &str = include_str!("../ui/js/app.js");
///
/// 它们的作用是把「提取器静默失真」与「数据真的变了」区分开:若扫描器写错而返回空集,
/// 集合断言会**在空集上"通过"**(C2005 坑 68),这些计数会先把运行中止。
const MODEL_COUNT: usize = 13;
const MODEL_COUNT: usize = 15;
const MARKET_COUNT: usize = 7;
const PLAN_COUNT: usize = 12;

Expand Down
3 changes: 2 additions & 1 deletion ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ ui/
多一处读取就多一处「按数据到没到」的机会(本轮的三个缺陷正是这么长出来的)。
2. **登录态目录缺席就诚实地空着**:`marketRows()` 返回 `null` ⇒ 列表走 `loadErrorRow` + 重试(C2072 的
降级态)、芯片不渲染、徽标不显示数字。空着不是缺陷 —— 假数据才是。
3. **`MODELS` / `PLANS` 是「上架表单的兜底表」,不是市场目录**(13 行 vs 7 行、顺序也不同):
3. **`MODELS` / `PLANS` 是「上架表单的兜底表」,不是市场目录**(两张表行数与顺序都不同,
各自的**行数**由 `src/catalog_gate.rs` 的 `MODEL_COUNT` / `MARKET_COUNT` 守,此处不抄数字):
二者**不得在同一条表达式里互为兜底**。
4. **游客路径是设计的一部分,不许顺手删**:`data.js` 的 `MARKET` / `PROVIDERS` 必须仍然存在且**被读**。
5. 控件按数据源重建时,`dataset` 标记要**区分三种状态**(`live` / `none` / `mock`)—— 把「登录态没数据」
Expand Down
6 changes: 4 additions & 2 deletions ui/js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@
{ provider: "deepseek", model: "deepseek-v4-pro", in: CNY(4.5), out: CNY(13.5), ctx: 1048576, max: 384000, tag: "推理" },
{ provider: "deepseek", model: "deepseek-flash", in: CNY(1.0), out: CNY(4.0), ctx: 1048576, max: 384000, tag: "多模态" },
{ provider: "zhipu", model: "glm-5.3", in: CNY(8.0), out: CNY(28.0), ctx: 1048576, max: 131072, tag: "旗舰" },
{ provider: "openai", model: "gpt-5.6-sol", in: USD(5.0), out: USD(30.0), ctx: 1050000, max: null, tag: "旗舰" },
{ provider: "openai", model: "gpt-5.6-sol", in: USD(4.0), out: USD(20.0), ctx: 1050000, max: null, tag: "旗舰" },
{ provider: "anthropic",model: "claude-opus-5", in: USD(5.0), out: USD(25.0), ctx: 1000000, max: null, tag: "旗舰" },
{ provider: "google", model: "gemini-3.1-pro", in: USD(2.0), out: USD(12.0), ctx: 1048576, max: null, tag: "多模态" },
{ provider: "xai", model: "grok-4.6", in: USD(2.0), out: USD(6.0), ctx: 500000, max: null, tag: "通用" },
{ provider: "xai", model: "grok-4.7", in: USD(2.0), out: USD(6.0), ctx: 500000, max: null, tag: "旗舰" },
{ provider: "moonshot", model: "kimi-k3", in: CNY(20.0), out: CNY(100.0), ctx: 1048576, max: null, tag: "长文" },
{ provider: "bytedance-ark", model: "doubao-seed-evolving", in: CNY(6.0), out: CNY(30.0), ctx: 1048576, max: 262144, tag: "旗舰" },
{ provider: "minimax", model: "minimax-m3", in: CNY(2.1), out: CNY(8.4), ctx: 1048576, max: null, tag: "轻量" },
{ provider: "aliyun-bailian", model: "qwen3.8-max", in: CNY(12.0), out: CNY(36.0), ctx: 1048576, max: null, tag: "旗舰" },
{ provider: "aliyun-bailian", model: "qwen3.7-plus", in: CNY(2.0), out: CNY(8.0), ctx: 1048576, max: null, tag: "通用" },
{ provider: "aliyun-bailian", model: "qwen3.7-flash", in: CNY(0.2), out: CNY(0.8), ctx: 1048576, max: null, tag: "轻量" },
{ provider: "aliyun-bailian", model: "qwen3.8-flash", in: CNY(0.8), out: CNY(2.7), ctx: 1048576, max: null, tag: "轻量" },
];

// 金额/余额格式化:整数原样(千分位);小数保留最多 5 位(2026-08-20:1 CNY = 1 点,点数可为小数)
Expand Down Expand Up @@ -80,7 +82,7 @@
MARKET: [
{ id: 1, provider: "deepseek", model: "deepseek-flash", in: CNY(1.0), out: CNY(4.0), ctx: 1048576, avail: true, peak: true, peakIn: CNY(2.0), peakOut: CNY(8.0), peakMult: 2 },
{ id: 2, provider: "zhipu", model: "glm-5.3", in: CNY(8.0), out: CNY(28.0), ctx: 1048576, avail: true },
{ id: 3, provider: "openai", model: "gpt-5.6-sol", in: USD(5.0), out: USD(30.0), ctx: 1050000, avail: true },
{ id: 3, provider: "openai", model: "gpt-5.6-sol", in: USD(4.0), out: USD(20.0), ctx: 1050000, avail: true },
{ id: 4, provider: "anthropic",model: "claude-opus-5", in: USD(5.0), out: USD(25.0), ctx: 1000000, avail: false },
{ id: 5, provider: "google", model: "gemini-3.1-pro", in: USD(2.0), out: USD(12.0), ctx: 1048576, avail: true },
{ id: 6, provider: "moonshot", model: "kimi-k3", in: CNY(20.0), out: CNY(100.0), ctx: 1048576, avail: true },
Expand Down
Loading