This commit is contained in:
yumoqing 2026-04-05 15:44:10 +08:00
parent 03a1a1be6c
commit a8415ef34e

View File

@ -149,7 +149,7 @@ async def llm_accounting(llmusage):
async def get_accounting_llmusages(luid=None): async def get_accounting_llmusages(luid=None):
env = ServerEnv() env = ServerEnv()
lus = [] lus = []
t = time.time - 20 t = time.time() - 20
dt = datetime.fromtimestamp(t) dt = datetime.fromtimestamp(t)
tsstr = dt.strftime('%Y-%m-%d %H:%M:%S.') + f'{dt.microsecond // 1000:03d}' tsstr = dt.strftime('%Y-%m-%d %H:%M:%S.') + f'{dt.microsecond // 1000:03d}'
async with get_sor_context(env, 'llmage') as sor: async with get_sor_context(env, 'llmage') as sor: