bugfix
This commit is contained in:
parent
6baa63aa3a
commit
57b7223f9c
@ -185,6 +185,8 @@ 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': 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