bugfix
This commit is contained in:
parent
5bb06f1e3b
commit
8f7504eb95
@ -76,9 +76,10 @@ async def uapi_request(request, sor, caller_orgid, callerid, uapi, llm, params):
|
||||
userid = await get_owner_userid(sor, llm)
|
||||
txt = ''
|
||||
async for l in uapi.stream_linify(llm.upappid, llm.apiname, userid, params=params):
|
||||
d = json.loads(l)
|
||||
txt = txt + d['content']
|
||||
yield l
|
||||
if l != '[DONE]':
|
||||
d = json.loads(l)
|
||||
txt = txt + d['content']
|
||||
yield l
|
||||
debug(f'{d=}, {txt=}')
|
||||
|
||||
async def inference(request, *args, **kw):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user