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
|
from ahserver.filestorage import FileStorage
|
||||||
|
|
||||||
async def append_new_llmoutput(webpath, output):
|
async def append_new_llmoutput(webpath, output):
|
||||||
|
critical(f'{webpath=}')
|
||||||
fs = FileStorage()
|
fs = FileStorage()
|
||||||
p = fs.realPath(webpath)
|
p = fs.realPath(webpath)
|
||||||
if isinstance(output, str):
|
if isinstance(output, str):
|
||||||
output = json.loads(output)
|
output = json.loads(output)
|
||||||
|
critical(f'{webpath=}')
|
||||||
bin = await read_webpath(webpath)
|
bin = await read_webpath(webpath)
|
||||||
io = json.loads(bin.decode('utf-8'))
|
io = json.loads(bin.decode('utf-8'))
|
||||||
io['output'].append(output)
|
io['output'].append(output)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user