This commit is contained in:
yumoqing 2025-09-02 17:36:15 +08:00
parent 5bb06f1e3b
commit 8f7504eb95

View File

@ -76,6 +76,7 @@ async def uapi_request(request, sor, caller_orgid, callerid, uapi, llm, params):
userid = await get_owner_userid(sor, llm) userid = await get_owner_userid(sor, llm)
txt = '' txt = ''
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 != '[DONE]':
d = json.loads(l) d = json.loads(l)
txt = txt + d['content'] txt = txt + d['content']
yield l yield l