From 7f753c32b938dca81cb23c1c818b82bffc986a97 Mon Sep 17 00:00:00 2001 From: MaxKUlish1 <93388714+MaxKUlish1@users.noreply.github.com> Date: Fri, 18 Aug 2023 02:59:25 +0600 Subject: Update Yqcloud.py # specify the correct encoding forcibly --- g4f/Provider/Yqcloud.py | 1 + 1 file changed, 1 insertion(+) (limited to 'g4f') diff --git a/g4f/Provider/Yqcloud.py b/g4f/Provider/Yqcloud.py index 3709e53d..a3147c2d 100644 --- a/g4f/Provider/Yqcloud.py +++ b/g4f/Provider/Yqcloud.py @@ -22,6 +22,7 @@ class Yqcloud(BaseProvider): url = "https://api.aichatos.cloud/api/generateStream" response = requests.post(url=url, headers=headers, json=payload) response.raise_for_status() + response.encoding = 'utf-8' yield response.text -- cgit v1.2.3