|
18 | 18 | import getpass |
19 | 19 | from werkzeug.security import generate_password_hash, check_password_hash |
20 | 20 | from werkzeug.utils import secure_filename |
21 | | -from DBManager import DBM |
| 21 | +try: |
| 22 | + from .DBManager import DBM |
| 23 | +except ImportError: |
| 24 | + from DBManager import DBM |
22 | 25 |
|
23 | 26 |
|
24 | 27 |
|
|
36 | 39 | # Available providers |
37 | 40 | PROVIDERS = { |
38 | 41 | "Auto": "", |
39 | | - "BlackBox": g4f.Provider.Blackbox, |
40 | | - "DeepInfraChat": g4f.Provider.DeepInfraChat, |
41 | | - "HuggingChat": g4f.Provider.HuggingChat, |
42 | | - "OpenaiChat": g4f.Provider.OpenaiChat, |
43 | | - "Wewordle": g4f.Provider.WeWordle, |
44 | | - "You": g4f.Provider.You, |
| 42 | + "ARTA": g4f.Provider.ARTA, |
| 43 | + "Blackbox": g4f.Provider.Blackbox, |
| 44 | + "Chatai": g4f.Provider.Chatai, |
| 45 | + "Cloudflare": g4f.Provider.Cloudflare, |
| 46 | + "Copilot": g4f.Provider.Copilot, |
| 47 | + "DeepInfra": g4f.Provider.DeepInfra, |
| 48 | + "DuckDuckGo": g4f.Provider.DuckDuckGo, |
| 49 | + "LambdaChat": g4f.Provider.LambdaChat, |
| 50 | + "OIVSCodeSer0501": g4f.Provider.OIVSCodeSer0501, |
| 51 | + "OpenAIFM": g4f.Provider.OpenAIFM, |
| 52 | + "PerplexityLabs": g4f.Provider.PerplexityLabs, |
| 53 | + "PollinationsAI": g4f.Provider.PollinationsAI, |
| 54 | + "PollinationsImage": g4f.Provider.PollinationsImage, |
| 55 | + "TeachAnything": g4f.Provider.TeachAnything, |
| 56 | + "Together": g4f.Provider.Together, |
| 57 | + "WeWordle": g4f.Provider.WeWordle, |
45 | 58 | "Yqcloud": g4f.Provider.Yqcloud, |
46 | | - "HuggingChat": g4f.Provider.HuggingChat, |
47 | | - "HuggingFace": g4f.Provider.HuggingFace |
48 | 59 |
|
49 | 60 | } |
50 | 61 |
|
|
95 | 106 | "--password", |
96 | 107 | action='store', |
97 | 108 | required=False, |
98 | | - help="Set or change the password for the settings page [mandatory in docker envirtonment]", |
| 109 | + help="Set or change the password for the settings page [mandatory in docker environment]", |
99 | 110 | ) |
100 | 111 | parser.add_argument( |
101 | 112 | "--cookie-file", |
|
155 | 166 | "--enable-virtual-users", |
156 | 167 | action='store_true', |
157 | 168 | required=False, |
158 | | - help="Giives the chance to create and manage new users", |
| 169 | + help="Gives the chance to create and manage new users", |
159 | 170 | ) |
160 | 171 |
|
161 | 172 | args, unknown = parser.parse_known_args() |
|
0 commit comments