mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 19:53:11 +03:00
Merge pull request #439 from mishalhossin/patch-1
This should prevent the UnicodeDecodeError in theb
This commit is contained in:
commit
53177ea123
@ -65,4 +65,4 @@ class Completion:
|
||||
|
||||
@staticmethod
|
||||
def handle_stream_response(response):
|
||||
Completion.message_queue.put(response.decode())
|
||||
Completion.message_queue.put(response.decode(errors='replace'))
|
||||
|
Loading…
Reference in New Issue
Block a user