update encoding

This commit is contained in:
Bagus Indrayana 2023-07-12 01:19:32 +08:00
parent 45787b4f0d
commit 23364b479a
1 changed files with 1 additions and 1 deletions

View File

@ -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')