Skip to content

Commit

Permalink
Merge pull request xtekky#439 from mishalhossin/patch-1
Browse files Browse the repository at this point in the history
This should prevent the UnicodeDecodeError in theb
  • Loading branch information
xtekky authored May 4, 2023
2 parents 95e0f7e + a233818 commit 53177ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpt4free/theb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def create(prompt: str, proxy: Optional[str] = None) -> Generator[str, None, Non

@staticmethod
def handle_stream_response(response):
Completion.message_queue.put(response.decode())
Completion.message_queue.put(response.decode(errors='replace'))

0 comments on commit 53177ea

Please sign in to comment.