This commit is contained in:
yumoqing 2026-03-30 16:27:45 +08:00
parent 2aa3185f2e
commit c0bb34fc02

View File

@ -197,11 +197,12 @@ async def query_task_status(request, upappid, apiname, luid, userid, taskid):
if charging: if charging:
changed.amount = charging.amount changed.amount = charging.amount
changed.cost = charging.cost changed.cost = charging.cost
debug(f'{changed=},{charging=}')
else: else:
changed.amount = cost = 0.0 changed.amount = cost = 0.0
except Exception as e: except Exception as e:
e1 = Exception(f'{llm.ppid} charging error{e}, {llm.ppid}, {llmusage=}') e1 = Exception(f'{llm.ppid} charging error{e}, {llm.ppid}, {llmusage=}')
exception(f'{e1}') exception(f'{e}')
changed.amount = changed.cost = 0 changed.amount = changed.cost = 0
else: else:
changed.amount = 0 changed.amount = 0