bugfix
This commit is contained in:
parent
57b7223f9c
commit
eca05848da
@ -185,8 +185,7 @@ where a.llmid = b.id
|
|||||||
r.usages = json.loads(r.usages)
|
r.usages = json.loads(r.usages)
|
||||||
d = await llm_charging(sor, r.ppid, r)
|
d = await llm_charging(sor, r.ppid, r)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
llmusage.accounting_status = 'failed'
|
await sor.U('llmusage', {'id': r.id, 'accounting_status': 'failed'})
|
||||||
await sor.U('llmusage', {'id': llmusage.id, 'accounting_status': 'failed'})
|
|
||||||
debug(f'{r.ppid=}, {r.usages=} llm_charging() failed')
|
debug(f'{r.ppid=}, {r.usages=} llm_charging() failed')
|
||||||
continue
|
continue
|
||||||
r.amount = d.amount
|
r.amount = d.amount
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user