From b0fba66b7cb029bf0a14a758e3e27e093ea155c4 Mon Sep 17 00:00:00 2001 From: 42 <1358688418@qq.com> Date: Fri, 27 Sep 2024 01:27:57 +0800 Subject: fix: --ignored-providers option not working due to variable name mismatch --- g4f/api/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f/api/__init__.py') 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()) -- cgit v1.2.3