summaryrefslogtreecommitdiffstats
path: root/g4f/api/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/api/__init__.py')
-rw-r--r--g4f/api/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/api/__init__.py b/g4f/api/__init__.py
index acb27e9c..2c723978 100644
--- a/g4f/api/__init__.py
+++ b/g4f/api/__init__.py
@@ -56,7 +56,7 @@ class ImagesGenerateForm(BaseModel):
proxy: Optional[str] = None
class AppConfig():
- list_ignored_providers: Optional[list[str]] = None
+ ignored_providers: Optional[list[str]] = None
g4f_api_key: Optional[str] = None
ignore_cookie_files: bool = False
defaults: dict = {}
@@ -161,7 +161,7 @@ class Api:
**AppConfig.defaults,
**config.dict(exclude_none=True),
},
- ignored=AppConfig.list_ignored_providers
+ ignored=AppConfig.ignored_providers
)
if not config.stream:
return JSONResponse((await response).to_json())