diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2024-09-29 22:42:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-29 22:42:14 +0200 |
commit | 92c604b562f170db771c8b10e35302f1e28993fe (patch) | |
tree | 0566d9df414f904d383457ca00a42de52ad826fb /g4f | |
parent | Merge pull request #2219 from monosans/patch-01 (diff) | |
parent | fix: --ignored-providers option not working due to variable name mismatch (diff) | |
download | gpt4free-92c604b562f170db771c8b10e35302f1e28993fe.tar gpt4free-92c604b562f170db771c8b10e35302f1e28993fe.tar.gz gpt4free-92c604b562f170db771c8b10e35302f1e28993fe.tar.bz2 gpt4free-92c604b562f170db771c8b10e35302f1e28993fe.tar.lz gpt4free-92c604b562f170db771c8b10e35302f1e28993fe.tar.xz gpt4free-92c604b562f170db771c8b10e35302f1e28993fe.tar.zst gpt4free-92c604b562f170db771c8b10e35302f1e28993fe.zip |
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/api/__init__.py | 4 |
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()) |