mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04: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