Compare commits

..

2 Commits

Author SHA1 Message Date
8e4fbe4813 bugfix 2026-03-30 13:24:42 +08:00
18aa031c62 bugfix 2026-03-30 13:24:18 +08:00

View File

@ -187,13 +187,14 @@ async def query_task_status(request, upappid, apiname, luid, userid, taskid):
else:
changed.amount = cost = 0.0
except Exception as e:
e = Exception(f'{llm.pid} charging error{e}')
exception(f'{e}')
e1 = Exception(f'{llm.ppid} charging error{e}, {llm.ppid}, {llmusage=}')
exception(f'{e1}')
changed.amount = changed.cost = 0
else:
changed.amount = 0
changed.cost = 0
await add_new_llmusage_output(luid, changed)
if llmusage.accounting_status != 'accounted':
if llmusage.accounting_status != 'accounted' and changed.amount > 0.00001:
await llm_accounting(request, llmusage)
status = rzt.status
if rzt.status == 'FAILED':