Commit Graph
5 Commits
Author SHA1 Message Date
chengcheng e3dfe8162b fix(billing): 视频时长按实际秒数线性计费
将五秒基础价按 duration / 5 比例结算,保留 provider 返回的小数时长,避免六秒视频被按两个完整单位收费。

影响:所有使用 5s 视频基础价的模型,quantity 与 durationUnitCount 允许小数。新增迁移同步现存规则的旧 ceil 公式元数据。

验证:go vet ./...;pnpm lint;pnpm test;pnpm build;./tests/ci/migrations-test.sh
2026-07-21 13:32:23 +08:00
wangbo 97f29ed156 Restore standard MiniMax resolutions and client mapping 2026-06-08 09:29:45 +08:00
wangbo dc14866210 迁移音频生成与语音合成到 gateway 并补充 simulation 测试 2026-06-07 10:26:57 +08:00
wangbo 11a2c13e4a fix: prefer generated video metadata for billing 2026-05-20 00:11:28 +08:00
wangbo 37d0f919e5 feat: add gateway billing estimate and rate limit details 2026-05-15 01:53:52 +08:00