Skip to content

Commit

Permalink
Merge pull request #22 from pamelafox/betterjsondump
Browse files Browse the repository at this point in the history
Better jsonlines dump
  • Loading branch information
pamelafox committed Aug 15, 2023
2 parents cbe6b37 + 03f5c55 commit 54bc928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flaskapp/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def response_stream():
)
for event in response:
current_app.logger.info(event)
yield json.dumps(event).replace("\n", "\\n") + "\n"
yield json.dumps(event, ensure_ascii=False) + "\n"

return Response(response_stream())

0 comments on commit 54bc928

Please sign in to comment.