Update app.py
Browse files
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
|
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)}")
|