diff options
author | Hp_mzx <971748116@qq.com> | 2023-05-23 09:34:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 09:34:27 +0200 |
commit | a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e (patch) | |
tree | 88545f3a0b16f720f12588d0289539fef152483d | |
parent | add hpgptapi (diff) | |
parent | Merge pull request #591 from enganese/patch-1 (diff) | |
download | gpt4free-a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e.tar gpt4free-a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e.tar.gz gpt4free-a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e.tar.bz2 gpt4free-a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e.tar.lz gpt4free-a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e.tar.xz gpt4free-a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e.tar.zst gpt4free-a9403e7cef89abd3e1ca3fa97a2724cc3ebfc30e.zip |
-rw-r--r-- | gpt4free/usesless/__init__.py | 1 |
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) |