返回提交历史
Modified
g4f/api/__init__.py
+2
-2
XFEstudio/gpt4free
fix: --ignored-providers option not working due to variable name mismatch
b0fba66b
代码差异
1 个文件
+2
-2
@@ -56,7 +56,7 @@ class ImagesGenerateForm(BaseModel):
56
56
proxy: Optional[str] = None
57
57
58
58
class AppConfig():
59
list_ignored_providers: Optional[list[str]] = None
59
ignored_providers: Optional[list[str]] = None
60
60
g4f_api_key: Optional[str] = None
61
61
ignore_cookie_files: bool = False
62
62
defaults: dict = {}
@@ -161,7 +161,7 @@ class Api:
161
161
**AppConfig.defaults,
162
162
**config.dict(exclude_none=True),
163
163
},
164
ignored=AppConfig.list_ignored_providers
164
ignored=AppConfig.ignored_providers
165
165
)
166
166
if not config.stream:
167
167
return JSONResponse((await response).to_json())