mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 10:40:43 -08:00
Fix unittests
This commit is contained in:
parent
9bee0dd5ba
commit
d6ba724bcc
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ from ...cookies import get_cookies_dir
|
||||||
def create_or_read_keys() -> tuple[RSAPrivateKey, RSAPublicKey]:
|
def create_or_read_keys() -> tuple[RSAPrivateKey, RSAPublicKey]:
|
||||||
private_key_file = os.path.join(get_cookies_dir(), "private_key.pem")
|
private_key_file = os.path.join(get_cookies_dir(), "private_key.pem")
|
||||||
public_key_file = os.path.join(get_cookies_dir(), "public_key.pem")
|
public_key_file = os.path.join(get_cookies_dir(), "public_key.pem")
|
||||||
|
os.makedirs(os.path.dirname(private_key_file), exist_ok=True)
|
||||||
|
|
||||||
if os.path.isfile(private_key_file) and os.path.isfile(public_key_file):
|
if os.path.isfile(private_key_file) and os.path.isfile(public_key_file):
|
||||||
# Read private key
|
# Read private key
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue