diff --git a/llmage/accounting.py b/llmage/accounting.py index 50ce26c..d230873 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -193,7 +193,7 @@ where a.llmid = b.id 'cost': r.cost, 'usage': json.dumps(r.usage, ensure_ascii=False, indent=4) } - await sor.U('llmusage', r.copy()) + await sor.U('llmusage', ns) lus.append(r) return lus