Merge branch 'xtekky:main' into main

This commit is contained in:
Hp_mzx 2023-05-23 15:34:27 +08:00 committed by GitHub
commit a9403e7cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,7 @@ class Completion:
url = "https://ai.usesless.com/api/chat-process" url = "https://ai.usesless.com/api/chat-process"
request = requests.post(url, headers=headers, json=json_data) request = requests.post(url, headers=headers, json=json_data)
request.encoding = request.apparent_encoding
content = request.content content = request.content
response = Completion.__response_to_json(content) response = Completion.__response_to_json(content)