Update __init__.py

This commit is contained in:
H Lohaus 2024-05-06 08:16:49 +02:00 committed by GitHub
parent 1d02a06456
commit 743fbc2a6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,16 +53,9 @@ class AppConfig():
ignore_cookie_files: bool = False
@classmethod
def set_list_ignored_providers(cls, ignored: list[str]):
cls.list_ignored_providers = ignored
@classmethod
def set_g4f_api_key(cls, key: str = None):
cls.g4f_api_key = key
@classmethod
def set_ignore_cookie_files(cls, value: bool):
cls.ignore_cookie_files = value
def set_config(cls, **data):
for key, value in data.items():
setattr(cls, key, value)
class Api:
def __init__(self, app: FastAPI) -> None: