bugfix
This commit is contained in:
parent
dfa7496866
commit
dacddcb53d
@ -98,6 +98,8 @@ async def uapi_request(request, llm, sor):
|
||||
try:
|
||||
async for l in uapi.stream_linify(llm.upappid, llm.apiname, userid,
|
||||
params=env.params_kw):
|
||||
if isinstance(l, bytes):
|
||||
l = l.decode('utf-8')
|
||||
if l and l != '[DONE]':
|
||||
yield_it = False
|
||||
d = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user