Merge pull request #595 from enganese/patch-2

Update gpt4free/aiassist/__init__.py
This commit is contained in:
xtekky 2023-05-24 18:39:46 +01:00 committed by GitHub
commit edbdc2ae30
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)