mirror of https://github.com/xtekky/gpt4free.git
Merge pull request #1146 from AndPim4912/GetGpt-debian-compat
Update GetGpt provider for Debian python3-pycryptodome compatibility
This commit is contained in:
commit
6363353670
|
@ -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