XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update __init__.py

Added: `request.encoding = request.apparent_encoding # <--- Fix is here` Fixed: - Cyrllic response text encoding

f8284d60
enganese (aka Ulxn) <69082498+enganese@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -0
Modified gpt4free/usesless/__init__.py +1 -0
@@ -117,6 +117,7 @@ class Completion:
117 117
118 118 url = "https://ai.usesless.com/api/chat-process"
119 119 request = requests.post(url, headers=headers, json=json_data)
120 request.encoding = request.apparent_encoding
120 121 content = request.content
121 122
122 123 response = Completion.__response_to_json(content)