summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Yqcloud.py
diff options
context:
space:
mode:
authorMaxKUlish1 <93388714+MaxKUlish1@users.noreply.github.com>2023-08-17 22:52:02 +0200
committerGitHub <noreply@github.com>2023-08-17 22:52:02 +0200
commit6da550f65cb0e1734789ffe389df6252de6914c8 (patch)
tree35062f8df54e487c8657edbf75e6c88e82ff736e /g4f/Provider/Yqcloud.py
parent~ | Merge pull request #812 (diff)
downloadgpt4free-6da550f65cb0e1734789ffe389df6252de6914c8.tar
gpt4free-6da550f65cb0e1734789ffe389df6252de6914c8.tar.gz
gpt4free-6da550f65cb0e1734789ffe389df6252de6914c8.tar.bz2
gpt4free-6da550f65cb0e1734789ffe389df6252de6914c8.tar.lz
gpt4free-6da550f65cb0e1734789ffe389df6252de6914c8.tar.xz
gpt4free-6da550f65cb0e1734789ffe389df6252de6914c8.tar.zst
gpt4free-6da550f65cb0e1734789ffe389df6252de6914c8.zip
Diffstat (limited to 'g4f/Provider/Yqcloud.py')
-rw-r--r--g4f/Provider/Yqcloud.py1
1 files changed, 1 insertions, 0 deletions
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