 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 |
|