mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 19:11:48 +03:00
Merge pull request #2251 from MirrorCY/main
fix: `--ignored-providers` option not working due to variable name mismatch
This commit is contained in:
commit
92c604b562
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user