summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-08-20 05:47:13 +0200
committerGitHub <noreply@github.com>2023-08-20 05:47:13 +0200
commitd5d0e6abc1456c1d912d96a0390032688f0d241a (patch)
tree74039f29e4929e171e362c52dd64462001926d35 /g4f/Provider
parent~ | Merge pull request #821 (diff)
parentMerge pull request #1 from MaxKUlish1/fix-encode-Yqcloud (diff)
downloadgpt4free-d5d0e6abc1456c1d912d96a0390032688f0d241a.tar
gpt4free-d5d0e6abc1456c1d912d96a0390032688f0d241a.tar.gz
gpt4free-d5d0e6abc1456c1d912d96a0390032688f0d241a.tar.bz2
gpt4free-d5d0e6abc1456c1d912d96a0390032688f0d241a.tar.lz
gpt4free-d5d0e6abc1456c1d912d96a0390032688f0d241a.tar.xz
gpt4free-d5d0e6abc1456c1d912d96a0390032688f0d241a.tar.zst
gpt4free-d5d0e6abc1456c1d912d96a0390032688f0d241a.zip
Diffstat (limited to '')
-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