Update gpt4free/aiassist/__init__.py

Added:
request.encoding = request.apparent_encoding
This commit is contained in:
enganese (aka Ulxn) 2023-05-23 15:35:54 +05:00 committed by GitHub
parent a076cd916a
commit 75a52d68f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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