19904408334
|
2d4f8ca5d5
|
chore(media): 更新数据库连接凭据
|
2026-09-04 14:28:46 +08:00 |
|
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
|
a52d66cd88
|
docs(pricing): 计划 Task 5 补设计文档 §5.2 修正步 + Self-Review 记录范围外死代码删除裁决
|
2026-09-01 15:10:32 +08:00 |
|
19904408334
|
7ff9743acc
|
docs(pricing): 枚举设计 §4.2/§5.2/§8 同步 mediaPrices v0.4 + 设计文档 §5.2 语法修正
|
2026-09-01 15:00:32 +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
|
867f2ac40c
|
docs(pricing): Task 4 追加既有行为回归测试(用户裁决 维持删除+补回归)
|
2026-09-01 14:49:55 +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
|
11486c0647
|
docs(pricing): mediaPrices 实现计划 v0.4
|
2026-09-01 14:37:19 +08:00 |
|
19904408334
|
90ad1b86db
|
docs(pricing): mediaPrices 媒体类型价与阶梯校验修复设计 v0.4
|
2026-09-01 14:25:07 +08:00 |
|
19904408334
|
f6ffb58794
|
feat(pricing): 按 subjectType+subjectId 查询可选计费方式接口
|
2026-09-01 13:08:03 +08:00 |
|
19904408334
|
1684c62032
|
feat(pricing): 计费方式中文名 + workflow 三模式常量 + charge-modes DTO
|
2026-09-01 13:03:44 +08:00 |
|
 19904408334andClaude
|
72c3cb8d88
|
docs(pricing): charge-modes 查询接口实现计划
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-09-01 12:01:28 +08:00 |
|
 19904408334andClaude
|
9d06bbe9af
|
docs(pricing): charge-modes 查询条件加 subjectId
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-09-01 11:59:06 +08:00 |
|
 19904408334andClaude
|
d36b0c231f
|
docs(pricing): 按 SubjectType 查询可选计费方式接口设计
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-09-01 11:53:16 +08:00 |
|
19904408334
|
3eab69034c
|
fix(pricing): settleOrder/Fail 锁内重读状态防并发重复扣费(跨库事务不可靠)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 18:29:51 +08:00 |
|
 19904408334andClaude
|
42ff4baac0
|
feat(pricing): init.sql 建表 subject 化 + config.yml 加 model-gateway 服务名
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 18:11:34 +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
|
2e8a3663a5
|
refactor(pricing): DAO 按 (subject_type, subject_id) 键查询/幂等
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 17:49:03 +08:00 |
|
19904408334
|
9b1aa1288d
|
refactor(pricing): entity/DTO 换 subject_type+subject_id(含 subject_dto 枚举 DTO)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 17:44:22 +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 |
|
 19904408334andClaude
|
0f8b9711ed
|
feat(pricing): 扩展 charge_mode 枚举(token/单位/per_period)+ subject 常量
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 17:27:31 +08:00 |
|
 19904408334andClaude
|
5d2b01e6f3
|
docs(pricing): 模型规则重设计(视频/推理/音频/图片自适应 schema + 预览)
- §4.2 model 规则改为模型类型自适应:unit 7 种(per_1K/per_1M/per_1/per_second/per_minute/per_hour/per_char)
+ tiered 阶梯(分档不累加)+ match 维度(mediaType/thinking/outputAudio/outputResolution/inputLength)+ price 收敛 input/output/cacheHit 与 unitPrice
- §5 计算器:token 计算器 + 单位计算器;ChargeUsage 扩展模型维度
- §7 枚举透传 modelType(100推理/200图片/300音频/600视频)
- preview HTML 重写模型编辑器为四类自适应 + 示例填充
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 17:06:45 +08:00 |
|
 19904408334andClaude
|
c3564df658
|
docs(pricing): spec 增补业务模块枚举与 per_period 周期计费;新增配置页原型
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 16:19:10 +08:00 |
|
 19904408334andClaude
|
2b800544bc
|
docs(pricing): 计价对象枚举化与模型计价设计 spec
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-28 15:36:24 +08:00 |
|
admin
|
4cf21df78e
|
gitea,gitea-runner写入docker-compose
|
2026-08-06 09:40:31 +08:00 |
|
admin
|
9b15adbf7b
|
common版本更新
|
2026-06-25 17:07:10 +08:00 |
|
admin
|
3f950c1731
|
common版本更新
|
2026-06-25 17:05:12 +08:00 |
|
admin
|
144373e3b1
|
common版本升级
|
2026-06-23 18:31:58 +08:00 |
|
admin
|
cceb69b387
|
ci/cd调整
|
2026-06-10 16:39:09 +08:00 |
|
admin
|
dd5df7f54f
|
common版本更新
|
2026-04-22 18:00:31 +08:00 |
|
admin
|
78afa0cf26
|
增加dockerfile配置
|
2026-04-09 17:42:55 +08:00 |
|
admin
|
6dd40c3b24
|
增加dockerfile配置
|
2026-04-09 16:14:31 +08:00 |
|
admin
|
bb1bd9becb
|
golang版本升级1.26.0
|
2026-04-03 11:39:33 +08:00 |
|
admin
|
48b0765983
|
golang版本升级1.26.0
|
2026-04-03 11:05:03 +08:00 |
|
admin
|
c63177e2ce
|
代码初始化
|
2026-04-02 10:29:17 +08:00 |
|
admin
|
7394983236
|
代码初始化
|
2026-04-02 10:22:36 +08:00 |
|