From 515dc3f63fb9b1460925f12055059e313df9df0d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Apr 2026 18:02:47 +0800 Subject: [PATCH] bugfix --- llmage/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llmage/utils.py b/llmage/utils.py index c8096ed..559f2a0 100644 --- a/llmage/utils.py +++ b/llmage/utils.py @@ -23,10 +23,12 @@ async def append_new_llmoutput(webpath, output): critical(f'{webpath=}') bin = await read_webpath(webpath) io = json.loads(bin.decode('utf-8')) + debug(f'append_new_llmoutput({webpath=}, {output=}') io['output'].append(output) async with aiofiles.open(p, 'wb') as f: iostr = json.dumps(io, ensure_ascii=False, indent=4) - f.write(iostr.encode('utf-8')) + debug(f'append_new_llmoutput({webpath=}, {output=}') + await f.write(iostr.encode('utf-8')) async def get_lastoutput(webpath): bin = await read_webpath(webpath)