mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
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 uuid
|
||||||
|
|
||||||
import requests
|
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 ...typing import Any, CreateResult
|
||||||
from ..base_provider import BaseProvider
|
from ..base_provider import BaseProvider
|
||||||
|
Loading…
Reference in New Issue
Block a user