fix sending error messages when streaming
This commit is contained in:
parent
7ce60079d7
commit
8184e24bff
|
@ -54,7 +54,7 @@ def stream(ws):
|
||||||
ws.send(json.dumps({
|
ws.send(json.dumps({
|
||||||
'event': 'text_stream',
|
'event': 'text_stream',
|
||||||
'message_num': message_num,
|
'message_num': message_num,
|
||||||
'text': invalid_response
|
'text': invalid_response[0].json['results'][0]['text']
|
||||||
}))
|
}))
|
||||||
else:
|
else:
|
||||||
input_prompt = request_json_body['prompt']
|
input_prompt = request_json_body['prompt']
|
||||||
|
|
Reference in New Issue