diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-10-24 20:42:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 20:42:11 +0200 |
commit | 6363353670acc0753437e9f810eeafdac17171f6 (patch) | |
tree | ff302e219311ae1c5711ebe98573ac8931c91e1c /g4f/Provider | |
parent | Merge pull request #1145 from AndPim4912/chatbase-invalid-response (diff) | |
parent | Update GetGpt provider for Debian python3-pycryptodome compatibility (diff) | |
download | gpt4free-6363353670acc0753437e9f810eeafdac17171f6.tar gpt4free-6363353670acc0753437e9f810eeafdac17171f6.tar.gz gpt4free-6363353670acc0753437e9f810eeafdac17171f6.tar.bz2 gpt4free-6363353670acc0753437e9f810eeafdac17171f6.tar.lz gpt4free-6363353670acc0753437e9f810eeafdac17171f6.tar.xz gpt4free-6363353670acc0753437e9f810eeafdac17171f6.tar.zst gpt4free-6363353670acc0753437e9f810eeafdac17171f6.zip |
Diffstat (limited to 'g4f/Provider')
-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 |