bugfi
This commit is contained in:
parent
8f7504eb95
commit
91de2a7265
@ -76,7 +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]':
|
if l and l != '[DONE]':
|
||||||
d = json.loads(l)
|
d = json.loads(l)
|
||||||
txt = txt + d['content']
|
txt = txt + d['content']
|
||||||
yield l
|
yield l
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user