bugfix
This commit is contained in:
parent
e29cdadf18
commit
de695424d3
@ -75,7 +75,8 @@ async def async_uapi_request(request, llm,
|
|||||||
estr = erase_apikey(e)
|
estr = erase_apikey(e)
|
||||||
ed = {"error": f"ERROR:{estr}", "status": "FAILED"}
|
ed = {"error": f"ERROR:{estr}", "status": "FAILED"}
|
||||||
exception(f'{ed}')
|
exception(f'{ed}')
|
||||||
yield f'{ed}\n'
|
estr = json.dumps(ed, ensure_ascii=False)
|
||||||
|
yield f'{estr}\n'
|
||||||
return
|
return
|
||||||
if isinstance(b, bytes):
|
if isinstance(b, bytes):
|
||||||
b = b.decode('utf-8')
|
b = b.decode('utf-8')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user