mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-05 00:01:00 +00:00
Update __init__.py
Added: `request.encoding = request.apparent_encoding # <--- Fix is here` Fixed: - Cyrllic response text encoding
This commit is contained in:
parent
9b6848766d
commit
f8284d6073
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user