mirror of https://github.com/xtekky/gpt4free.git
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