From 23364b479af936f156b14550c918bc7d031c127d Mon Sep 17 00:00:00 2001 From: Bagus Indrayana Date: Wed, 12 Jul 2023 01:19:32 +0800 Subject: update encoding --- testing/binghuan/BingHuan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/binghuan') diff --git a/testing/binghuan/BingHuan.py b/testing/binghuan/BingHuan.py index ce36b1f2..8c859c08 100644 --- a/testing/binghuan/BingHuan.py +++ b/testing/binghuan/BingHuan.py @@ -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') -- cgit v1.2.3