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

View File

@ -78,6 +78,7 @@ 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): async for l in uapi.stream_linify(llm.upappid, llm.apiname, userid, params=params):
if l and l != '[DONE]': if l and l != '[DONE]':
d = json.loads(l) d = json.loads(l)
if d['content'] != '':
txt = txt + d['content'] txt = txt + d['content']
yield l yield l
debug(f'{d=}, {txt=}') debug(f'{d=}, {txt=}')