mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
update encoding
This commit is contained in:
parent
45787b4f0d
commit
23364b479a
@ -18,7 +18,7 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs):
|
||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
|
||||
for line in iter(p.stdout.readline, b''):
|
||||
yield line.decode('utf-8')
|
||||
yield line.decode('cp1252')
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user