summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/deprecated/GetGpt.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-10-24 20:42:11 +0200
committerGitHub <noreply@github.com>2023-10-24 20:42:11 +0200
commit6363353670acc0753437e9f810eeafdac17171f6 (patch)
treeff302e219311ae1c5711ebe98573ac8931c91e1c /g4f/Provider/deprecated/GetGpt.py
parentMerge pull request #1145 from AndPim4912/chatbase-invalid-response (diff)
parentUpdate GetGpt provider for Debian python3-pycryptodome compatibility (diff)
downloadgpt4free-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/deprecated/GetGpt.py')
-rw-r--r--g4f/Provider/deprecated/GetGpt.py5
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