This commit is contained in:
yumoqing 2026-04-05 15:07:00 +08:00
parent a9dac89119
commit 767edfa606

View File

@ -186,12 +186,12 @@ where a.llmid = b.id
lus.append(r)
return lus
async def backend_accounting():
env = ServerEnv()
debug(f'backend accounting started ...')
while True:
lus = await get_accounting_llmusages()
for lu in lus:
await llm_accounting(lu)
await asyncio.sleep(0.1)
async def backend_accounting():
env = ServerEnv()
debug(f'backend accounting started ...')
while True:
lus = await get_accounting_llmusages()
for lu in lus:
await llm_accounting(lu)
await asyncio.sleep(0.1)