chrisrude / oobabot

A Discord bot which talks to Large Language Model AIs running on oobabooga's text-generation-webui
MIT License
101 stars 34 forks source link

Unicode logging reliability fix ooba_client.py #70

Closed harlyh closed 1 year ago

harlyh commented 1 year ago

Looks like the oobabooga developer was the one who caused this Unicode issue.

Refactored the fix from the last pull request to enable it only when case it's actually needed. I don't trust developers who do everything on the main branch all the time not repeatedly causing this, so the bugfix is only applied when needed.

This commit ensures that this never happens either: WindowsTerminal_iMtGqTAi06

We want to see this: WindowsTerminal_Zp21zzsVaA

Obviously, this isn't that bad compared to the situation from 2 days ago when the issue caused bot failures.