This commit is contained in:
yumoqing 2026-04-10 17:02:48 +08:00
parent 133f734cd9
commit fbaf43f608

View File

@ -17,7 +17,7 @@ from ahserver.filestorage import FileStorage
async def append_new_llmoutput(webpath, output): async def append_new_llmoutput(webpath, output):
fs = FileStorage() fs = FileStorage()
p = fs.realPath(webpath) p = fs.realPath(webpath)
if not isinstance(output, str): if isinstance(output, str):
output = json.loads(output) output = json.loads(output)
bin = await read_webpath(webpath) bin = await read_webpath(webpath)
io = json.loads(bin.decode('utf-8')) io = json.loads(bin.decode('utf-8'))