This commit is contained in:
yumoqing 2026-04-10 14:50:11 +08:00
parent 1062f5b17e
commit a0ad8af80f

View File

@ -26,7 +26,7 @@ async def append_new_llmoutput(webpath, output):
iostr = json.dumps(io, ensure_ascii=False, indent=4) iostr = json.dumps(io, ensure_ascii=False, indent=4)
f.write(iostr.encode('utf-8')) f.write(iostr.encode('utf-8'))
async def get_usage_from_lastoutput(webpath): async def get_lastoutput(webpath):
bin = await read_webpath(webpath) bin = await read_webpath(webpath)
io = json.load(bin.decode('utf-8')) io = json.load(bin.decode('utf-8'))
return io['output'][-1] return io['output'][-1]