19904408334
|
8083d3f2d2
|
feat(pricing): 支持 per_item 按逐条产出时长计费
- 新增 ChargeUsage.DurationItems 字段用于接收逐条时长明细
- 无明细时回落单条 DurationSec,兼容旧客户端和直接 /calc 调用
- 重构 charge 逻辑,按时长落档求和并支持上不封顶线性叠加
|
2026-09-03 15:46:16 +08:00 |
|
19904408334
|
136463f074
|
chore(docs): 移除 superpowers 设计与计划文档
|
2026-09-03 13:20:00 +08:00 |
|
19904408334
|
1825ea5581
|
feat(pricing): pickModelPrice 按输入媒体取媒体价/默认价
|
2026-09-01 14:55:22 +08:00 |
|
19904408334
|
4260125040
|
feat(pricing): mediaPrices 键/值校验 + ModelMediaSet 白名单
|
2026-09-01 14:51:54 +08:00 |
|
19904408334
|
4c54be1758
|
fix(pricing): validateTieredBands 按下界排序判档位相邻 + 修同起 0 漏检
|
2026-09-01 14:43:23 +08:00 |
|
19904408334
|
63bc74eca9
|
refactor(pricing): modelRule 加 mediaPrices + match 移除 mediaType
|
2026-09-01 14:38:49 +08:00 |
|
19904408334
|
f6ffb58794
|
feat(pricing): 按 subjectType+subjectId 查询可选计费方式接口
|
2026-09-01 13:08:03 +08:00 |
|
19904408334
|
3eab69034c
|
fix(pricing): settleOrder/Fail 锁内重读状态防并发重复扣费(跨库事务不可靠)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 18:29:51 +08:00 |
|
19904408334
|
27bde0ee5b
|
feat(pricing): 计价对象枚举接口(workflow+实时model-gateway系统模型+固定业务模块)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 18:04:09 +08:00 |
|
 19904408334andClaude
|
e9da4c1d78
|
feat(pricing): OpenOrder/SaveConfig 按 subject 类型校验 + per_token 按模型实时价结算
- service 层全量切换 subject_type+subject_id 键(去除 BizKey 残留)
- OpenOrder 按 subject 类型 resolveChargeMode + 规则快照 + 门禁 + 幂等
- SaveConfig/GetConfig 按 subject 类型校验 rules 结构
- settleOrder 支持 per_token 分支(calcPerTokenOrder 按模型实时价)
- 修复 model 计算器:P1 nil price 校验、P2 unit/base 交叉校验、M3 cached>prompt 负成本钳位
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 17:56:00 +08:00 |
|
19904408334
|
3e0b7bafc3
|
feat(pricing): 模型 token/单位计算器 + per_period + 按 subject_type 分表派发
pricing_service.go 三处调用同步改为 subject 签名(Task 5 将整体重构)。
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 17:33:59 +08:00 |
|
admin
|
cceb69b387
|
ci/cd调整
|
2026-06-10 16:39:09 +08:00 |
|
admin
|
7394983236
|
代码初始化
|
2026-04-02 10:22:36 +08:00 |
|