smgc commited on
Commit
f935da6
1 Parent(s): 4a5e212

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -276,7 +276,7 @@ def handle_non_stream(previous_messages, msg_id):
276
  "output_tokens": len(''.join(response_text)),
277
  },
278
  }
279
- return jsonify(full_response)
280
 
281
  except Exception as e:
282
  logging.error(f"Error during socket connection: {str(e)}")
 
276
  "output_tokens": len(''.join(response_text)),
277
  },
278
  }
279
+ return Response(json.dumps(full_response, ensure_ascii=False), content_type='application/json')
280
 
281
  except Exception as e:
282
  logging.error(f"Error during socket connection: {str(e)}")