diff options
Diffstat (limited to 'g4f/Provider/deprecated')
-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 |