bugfix
This commit is contained in:
parent
c786f29b42
commit
20de0952bb
@ -15,10 +15,12 @@ from ahserver.serverenv import get_serverenv, ServerEnv
|
||||
from ahserver.filestorage import FileStorage
|
||||
|
||||
async def append_new_llmoutput(webpath, output):
|
||||
critical(f'{webpath=}')
|
||||
fs = FileStorage()
|
||||
p = fs.realPath(webpath)
|
||||
if isinstance(output, str):
|
||||
output = json.loads(output)
|
||||
critical(f'{webpath=}')
|
||||
bin = await read_webpath(webpath)
|
||||
io = json.loads(bin.decode('utf-8'))
|
||||
io['output'].append(output)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user