From 75a52d68f85a1536a7d1e3738215ba52087aedc3 Mon Sep 17 00:00:00 2001 From: "enganese (aka Ulxn)" <69082498+enganese@users.noreply.github.com> Date: Tue, 23 May 2023 15:35:54 +0500 Subject: [PATCH] Update gpt4free/aiassist/__init__.py Added: request.encoding = request.apparent_encoding --- gpt4free/aiassist/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gpt4free/aiassist/__init__.py b/gpt4free/aiassist/__init__.py index 10082c22..f54feaee 100644 --- a/gpt4free/aiassist/__init__.py +++ b/gpt4free/aiassist/__init__.py @@ -21,6 +21,7 @@ class Completion: url = "http://43.153.7.56:8080/api/chat-process" request = requests.post(url, json=json_data) + request.encoding = request.apparent_encoding content = request.content response = Completion.__load_json(content)