bugfix
This commit is contained in:
parent
af804c8b9a
commit
0a42aa88f0
@ -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):
|
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)
|
||||||
txt = txt + d['content']
|
if d['content'] != '':
|
||||||
yield l
|
txt = txt + d['content']
|
||||||
|
yield l
|
||||||
debug(f'{d=}, {txt=}')
|
debug(f'{d=}, {txt=}')
|
||||||
|
|
||||||
async def inference(request, *args, **kw):
|
async def inference(request, *args, **kw):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user