From d8bd0348b09702056c661b7ad3c39581333738d2 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Apr 2026 13:59:53 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index 26c6e90..986bc19 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -13,7 +13,7 @@ from accounting.getaccount import getCustomerBalance async def llm_charging(ppid, llmusage): env = ServerEnv() usages = llmusage.usages - if isinstance(usages): + if isinstance(usages, str): usages = json.loads(usages) prices = await env.buffered_charging(ppid, usages) if prices is None: