how did this get broken
This commit is contained in:
parent
05a45e6ac6
commit
1582625e09
|
@ -23,7 +23,7 @@ class OobaRequestHandler(RequestHandler):
|
|||
return jsonify({'code': 400, 'msg': 'Invalid JSON'}), 400
|
||||
|
||||
params_valid, request_valid = self.validate_request()
|
||||
if not request_valid[0] or not params_valid[1]:
|
||||
if not request_valid[0] or not params_valid[0]:
|
||||
error_messages = [msg for valid, msg in [request_valid, params_valid] if not valid and msg]
|
||||
combined_error_message = ', '.join(error_messages)
|
||||
err = format_sillytavern_err(f'Validation Error: {combined_error_message}.', 'error')
|
||||
|
|
Reference in New Issue