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

XFEstudio/gpt4free

Fix unittests

d6ba724b
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -0
Modified g4f/gui/server/crypto.py +1 -0
@@ -12,6 +12,7 @@ from ...cookies import get_cookies_dir
12 12 def create_or_read_keys() -> tuple[RSAPrivateKey, RSAPublicKey]:
13 13 private_key_file = os.path.join(get_cookies_dir(), "private_key.pem")
14 14 public_key_file = os.path.join(get_cookies_dir(), "public_key.pem")
15 os.makedirs(os.path.dirname(private_key_file), exist_ok=True)
15 16
16 17 if os.path.isfile(private_key_file) and os.path.isfile(public_key_file):
17 18 # Read private key