From a226b3a27b5cfa52e90545cc8ace7ba880508c9c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Apr 2026 14:49:00 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index d577097..966345c 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -184,10 +184,10 @@ where a.llmid = b.id try: if isinstance(r.usages, str): r.usages = json.loads(r.usages) - d = await llm_charging(sor, r.ppid, r) + d = await llm_charging(r.ppid, r) except Exception as e: await sor.U('llmusage', {'id': r.id, 'accounting_status': 'failed'}) - debug(f'{r.ppid=}, {r.usages=} llm_charging() failed') + exception(f'{r.ppid=}, {r.usages=} llm_charging() failed,{e}') continue r.amount = d.amount r.cost = d.cost