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

XFEstudio/gpt4free

Update backend_api.py

23d4c6eb
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/gui/server/backend_api.py +2 -2
@@ -110,9 +110,9 @@ class Backend_Api(Api):
110 110 def get_public_key():
111 111 if not has_crypto:
112 112 return jsonify({"error": {"message": "Crypto support is not available"}}), 501
113 if time.time() - int(base64.b64decode(request.cookies.get("fingerprint", "MA==")).decode()) > 60:
113 # if time.time() - int(base64.b64decode(request.cookies.get("fingerprint", "MA==")).decode()) > 60:
114 114 # If the fingerprint is older than 60 seconds, generate a new one
115 resp = jsonify({"error": {"message": "Please refresh the page"}})
115 # resp = jsonify({"error": {"message": "Please refresh the page"}})
116 116 return resp
117 117 # Send the public key to the client for encryption
118 118 return jsonify({