This commit is contained in:
yumoqing 2026-05-22 13:34:24 +08:00
parent 2ab106648f
commit 15a5e1d362

View File

@ -70,7 +70,11 @@ async def llm_accounting(llmusage):
env = ServerEnv()
llmid = llmusage.llmid
async with get_sor_context(env, 'llmage') as sor:
sql = "select * from llm where id=${llmid}$"
sql = """select a.*, b.ppid from llm a, llm_api_map b
where id=${llmid}$
and a.id = b.llmid
and b.isdefaultcatelog is '1'
"""
recs = await sor.sqlExe(sql, {'llmid': llmusage.llmid})
if len(recs) == 0:
ns = {