From 7cc0d6429105f60eef5d8dbf7286c57e11a61bc3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 23 May 2026 20:02:01 +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 aa4f3cc..437b95f 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -185,8 +185,8 @@ where a.llmid = b.id continue r.usages = output.get('usage') if r.usages is None: + debug(f'{r.usages=} is None, accoiunting failed') await llm_accoung_failed(r.id) - debug(f'{r.usages=} is None') continue d = None try: @@ -194,8 +194,8 @@ where a.llmid = b.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}') + await llm_accoung_failed(r.id) continue r.amount = d.amount r.cost = d.cost