mirror of https://github.com/xtekky/gpt4free.git
Update GetGpt provider for Debian python3-pycryptodome compatibility
Try to import AES from Cryptodome.Cipher if Crypto.Cipher caused error.
This commit is contained in:
parent
8eab96d319
commit
87f8007345
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue