From 2ab106648f63dae5c586d8e1c5745b0e59f397b7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 22 May 2026 13:12:30 +0800 Subject: [PATCH] buggix --- llmage/accounting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index 42514c5..3cf0cb7 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -196,9 +196,9 @@ where a.llmid = b.id continue d = None try: - if isinstance(r.usages, str): - r.usages = json.loads(r.usages) + debug(f'{r.ppid=}, {r.usages=} {r.id=}') d = await llm_charging(r.ppid, r) + except Exception as e: await llm_accoung_failed(r.id) exception(f'{r.ppid=}, {r.usages=} llm_charging() failed,{e}')