返回提交历史
Modified
g4f/api/__init__.py
+3
-10
XFEstudio/gpt4free
Update __init__.py
743fbc2a
代码差异
1 个文件
+3
-10
@@ -53,16 +53,9 @@ class AppConfig():
53
53
ignore_cookie_files: bool = False
54
54
55
55
@classmethod
56
def set_list_ignored_providers(cls, ignored: list[str]):
57
cls.list_ignored_providers = ignored
58
59
@classmethod
60
def set_g4f_api_key(cls, key: str = None):
61
cls.g4f_api_key = key
62
63
@classmethod
64
def set_ignore_cookie_files(cls, value: bool):
65
cls.ignore_cookie_files = value
56
def set_config(cls, **data):
57
for key, value in data.items():
58
setattr(cls, key, value)
66
59
67
60
class Api:
68
61
def __init__(self, app: FastAPI) -> None: