update encoding

pull/740/head
Bagus Indrayana 1 year ago
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…
Cancel
Save