Compare commits

..

No commits in common. "8e4fbe4813b488b27c86a7d49d4c4ffc97bb4d6d" and "02bccc88c1cb3032e96aa44ff8b16b28c00aa88d" have entirely different histories.

View File

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