From 95cfd95d46b8c41cb881518a41b4ab69a6a1f3a8 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 22 Dec 2025 14:29:10 +0800 Subject: [PATCH] bugfix --- wwwroot/llmcost.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/llmcost.dspy b/wwwroot/llmcost.dspy index 6c7b7d5..d873733 100644 --- a/wwwroot/llmcost.dspy +++ b/wwwroot/llmcost.dspy @@ -7,12 +7,12 @@ if not ns.use_date: ns.use_date = curDateString() async with get_sor_context(request._run_ns, 'llmage') as sor: - sql = """select a.id, a.llmid, a.usage, b.name, b.ppid + sql = """select a.id, a.llmid, a.usage, b.name, b.model, b.ppid from llmusage a, llm b where a.llmid = b.id and use_date=${use_date}$ """ - d = await sor.R('llmusage', ns) + d = await sor.sqlExe(sql, ns) for r in d['rows']: if r.ppid: r.amount = await pricing_program_charging(sor, r.ppid, r.usage)