This commit is contained in:
yumoqing 2026-04-09 15:40:03 +08:00
parent 41b7b95cf5
commit 050f572f02

View File

@ -187,6 +187,12 @@ where a.llmid = b.id
continue continue
r.amount = d.amount r.amount = d.amount
r.cost = d.cost r.cost = d.cost
ns = {
'id': r.id,
'amount': r.amount,
'cost': r.cost,
'usage': json.dumps(r.usage, ensure_ascii=False, indent=4)
}
await sor.U('llmusage', r.copy()) await sor.U('llmusage', r.copy())
lus.append(r) lus.append(r)
return lus return lus