summaryrefslogtreecommitdiffstats
path: root/gpt4free
diff options
context:
space:
mode:
authorenganese (aka Ulxn) <69082498+enganese@users.noreply.github.com>2023-05-22 08:46:01 +0200
committerGitHub <noreply@github.com>2023-05-22 08:46:01 +0200
commitf8284d6073d1735b4cd1cd99d7cb953e72abb96e (patch)
treee9c6142a886d12586d9696cddcbc7bd07750f34c /gpt4free
parentMerge pull request #584 from ezerinz/main (diff)
downloadgpt4free-f8284d6073d1735b4cd1cd99d7cb953e72abb96e.tar
gpt4free-f8284d6073d1735b4cd1cd99d7cb953e72abb96e.tar.gz
gpt4free-f8284d6073d1735b4cd1cd99d7cb953e72abb96e.tar.bz2
gpt4free-f8284d6073d1735b4cd1cd99d7cb953e72abb96e.tar.lz
gpt4free-f8284d6073d1735b4cd1cd99d7cb953e72abb96e.tar.xz
gpt4free-f8284d6073d1735b4cd1cd99d7cb953e72abb96e.tar.zst
gpt4free-f8284d6073d1735b4cd1cd99d7cb953e72abb96e.zip
Diffstat (limited to 'gpt4free')
-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)