Update Yqcloud.py

# specify the correct encoding forcibly
pull/820/head^2
MaxKUlish1 11 months ago committed by GitHub
parent 5de30dd097
commit 7f753c32b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save