Compare commits
2 Commits
9dd73339ce
...
7e31ecde89
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e31ecde89 | |||
| bd5c9e7aff |
@ -1,5 +1,5 @@
|
|||||||
userid = await get_user()
|
userid = await get_user()
|
||||||
tasks = await get_today_asynctask_list(userrid)
|
tasks = await get_today_asynctask_list(userid)
|
||||||
return {
|
return {
|
||||||
'status': 'ok',
|
'status': 'ok',
|
||||||
'data': {
|
'data': {
|
||||||
|
|||||||
8
wwwroot/llmaccounting.dspy
Normal file
8
wwwroot/llmaccounting.dspy
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
env = request._run_ns
|
||||||
|
async with sor_get_context(env, 'llmage') as sor:
|
||||||
|
sql = "select * from llmusage where status='SUCCEEDED' and accounting_status != 'accounted'"
|
||||||
|
recs = sor.sqlExe(sql, {})
|
||||||
|
for r in recs:
|
||||||
|
try:
|
||||||
|
x = await llm_accounting(request, r)
|
||||||
|
except Exception(f'{r.id=} accounting error')
|
||||||
Loading…
x
Reference in New Issue
Block a user