Skip to content

Commit

Permalink
Additional Unicode logging fix for ooba_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
harlyh authored and chrisrude committed Jul 17, 2023
1 parent 12038ff commit 7e80a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oobabot/ooba_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async def request_by_token(self, prompt: str) -> typing.AsyncIterator[str]:
text = incoming_data["text"]
if text != SentenceSplitter.END_OF_INPUT:
if self.log_all_the_things:
print(text, end="", flush=True)
print(text.encode('utf-8'), end="", flush=True)

yield text

Expand Down

0 comments on commit 7e80a3a

Please sign in to comment.