From 7e31ecde890584629e1e450aa0d65f7457be4e8e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 30 Mar 2026 15:40:33 +0800 Subject: [PATCH] bugfix --- wwwroot/llmaccounting.dspy | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 wwwroot/llmaccounting.dspy diff --git a/wwwroot/llmaccounting.dspy b/wwwroot/llmaccounting.dspy new file mode 100644 index 0000000..5d0bf66 --- /dev/null +++ b/wwwroot/llmaccounting.dspy @@ -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')