mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
43ae1e5f2c
* fix(coding-plan): 适配 MiniMax 余额查询新接口 + 默认定价 ## 余额查询修复 /v1/api/openplatform/coding_plan/remains 新接口不再返回 current_*_total_count / current_*_usage_count(恒为 0), 改为返回 current_*_remaining_percent(剩余百分比)。 旧代码会因守卫失败导致 tiers 为空,tray 不再显示用量。 - 切换数据源到 *_remaining_percent,反转为已用百分比 - 过滤 model_name == "general",跳过 video 等非编程模型 - 提取 parse_minimax_tiers 纯函数,便于无 mock 单元测试 - 复用 TIER_FIVE_HOUR / TIER_WEEKLY_LIMIT 常量 - 新增 6 个单元测试覆盖主路径与边界 ## 默认定价新增 按 2026-06-01 上线的人民币价格 (CNY/7.0 汇率,口径与 M2.7 反推一致) 换算为 USD,在 seed_model_pricing 数组中追加 minimax-m3: | model_id | display_name | input | output | cache_read | cache_creation | |--------------|--------------|-------|--------|------------|----------------| | minimax-m3 | MiniMax M3 | 0.60 | 2.40 | 0.12 | 0 | 不取512K上下文定价(参照当前模型标准) * fix(coding-plan): MiniMax 兼容无周限额套餐 (current_weekly_status=3)
43ae1e5f2c
·
2026-06-03 14:28:05 +08:00
History