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