This commit is contained in:
yumoqing 2025-09-19 15:25:51 +08:00
parent 20f1a25d0c
commit 182f14776d

View File

@ -118,7 +118,7 @@ async def uapi_request(request, llm, sor):
if d.get('content'): if d.get('content'):
txt = txt + d['content'] txt = txt + d['content']
yield_it = True yield_it = True
yield l yield json.dumps(d) + '\n'
except Exception as e: except Exception as e:
exception(f'{e=},{format_exc()}') exception(f'{e=},{format_exc()}')
yield f'{{"content": f"ERROR:{e=}"}}\n' yield f'{{"content": f"ERROR:{e=}"}}\n'