From 6da550f65cb0e1734789ffe389df6252de6914c8 Mon Sep 17 00:00:00 2001 From: MaxKUlish1 <93388714+MaxKUlish1@users.noreply.github.com> Date: Fri, 18 Aug 2023 02:52:02 +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 From 5de30dd097d02d3d3a359274aa676efdbfd168cc Mon Sep 17 00:00:00 2001 From: MaxKUlish1 <93388714+MaxKUlish1@users.noreply.github.com> Date: Fri, 18 Aug 2023 02:54:31 +0600 Subject: Update Yqcloud.py --- g4f/Provider/Yqcloud.py | 1 - 1 file changed, 1 deletion(-) (limited to 'g4f') diff --git a/g4f/Provider/Yqcloud.py b/g4f/Provider/Yqcloud.py index a3147c2d..3709e53d 100644 --- a/g4f/Provider/Yqcloud.py +++ b/g4f/Provider/Yqcloud.py @@ -22,7 +22,6 @@ 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 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