This commit is contained in:
yumoqing 2025-09-03 11:29:11 +08:00
parent af804c8b9a
commit 0a42aa88f0

View File

@ -78,8 +78,9 @@ async def uapi_request(request, sor, caller_orgid, callerid, uapi, llm, params):
async for l in uapi.stream_linify(llm.upappid, llm.apiname, userid, params=params):
if l and l != '[DONE]':
d = json.loads(l)
txt = txt + d['content']
yield l
if d['content'] != '':
txt = txt + d['content']
yield l
debug(f'{d=}, {txt=}')
async def inference(request, *args, **kw):