diff options
author | razrab <razrab@PimoLin> | 2023-10-24 18:30:57 +0200 |
---|---|---|
committer | razrab <razrab@PimoLin> | 2023-10-24 18:30:57 +0200 |
commit | 87f8007345bd5c92b79730bde711cf19eda70909 (patch) | |
tree | c40480c1d0795e7e0aa7c6869195b2a09f0de11d /g4f/Provider | |
parent | Merge pull request #1144 from Ayushpanditmoto/main (diff) | |
download | gpt4free-87f8007345bd5c92b79730bde711cf19eda70909.tar gpt4free-87f8007345bd5c92b79730bde711cf19eda70909.tar.gz gpt4free-87f8007345bd5c92b79730bde711cf19eda70909.tar.bz2 gpt4free-87f8007345bd5c92b79730bde711cf19eda70909.tar.lz gpt4free-87f8007345bd5c92b79730bde711cf19eda70909.tar.xz gpt4free-87f8007345bd5c92b79730bde711cf19eda70909.tar.zst gpt4free-87f8007345bd5c92b79730bde711cf19eda70909.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/deprecated/GetGpt.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g4f/Provider/deprecated/GetGpt.py b/g4f/Provider/deprecated/GetGpt.py index a5de1d29..0fbb5b87 100644 --- a/g4f/Provider/deprecated/GetGpt.py +++ b/g4f/Provider/deprecated/GetGpt.py @@ -5,7 +5,10 @@ import os import uuid import requests -from Crypto.Cipher import AES +try: + from Crypto.Cipher import AES +except ImportError: + from Cryptodome.Cipher import AES from ...typing import Any, CreateResult from ..base_provider import BaseProvider |