Skip to content

Commit b22a43b

Browse files
authored
fix: mark task settlement logs with is_task for tiered billing display (#7446)
1 parent bbf60b4 commit b22a43b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎service/task_billing.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ func taskAdjustTokenQuota(ctx context.Context, task *model.Task, delta int) {
147147
// taskBillingOther 从 task 的 BillingContext 构建日志 Other 字段。
148148
func taskBillingOther(task *model.Task) *model.LogOther {
149149
other := model.NewLogOther()
150+
// 前端列表按 is_task 选择任务档位渲染分支,缺失会把差额/退款日志误判成普通 relay 动态计费
151+
other.SetPublic("is_task", true)
150152
if bc := task.PrivateData.BillingContext; bc != nil {
151153
other.SetPublic("model_price", bc.ModelPrice)
152154
if bc.ModelRatio > 0 {

0 commit comments

Comments
 (0)