summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gpt4free/usesless/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpt4free/usesless/__init__.py b/gpt4free/usesless/__init__.py
index 7c61936e..9efc410f 100644
--- a/gpt4free/usesless/__init__.py
+++ b/gpt4free/usesless/__init__.py
@@ -117,6 +117,7 @@ class Completion:
url = "https://ai.usesless.com/api/chat-process"
request = requests.post(url, headers=headers, json=json_data)
+ request.encoding = request.apparent_encoding
content = request.content
response = Completion.__response_to_json(content)