This commit is contained in:
yumoqing 2026-04-08 13:59:53 +08:00
parent 9c2090b47e
commit d8bd0348b0

View File

@ -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: