summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author42 <1358688418@qq.com>2024-09-26 19:27:57 +0200
committer42 <1358688418@qq.com>2024-09-26 19:27:57 +0200
commitb0fba66b7cb029bf0a14a758e3e27e093ea155c4 (patch)
tree6927fd94530b1413a03132cf8b32266a490768df
parentAdded gpt-4o provider (diff)
downloadgpt4free-b0fba66b7cb029bf0a14a758e3e27e093ea155c4.tar
gpt4free-b0fba66b7cb029bf0a14a758e3e27e093ea155c4.tar.gz
gpt4free-b0fba66b7cb029bf0a14a758e3e27e093ea155c4.tar.bz2
gpt4free-b0fba66b7cb029bf0a14a758e3e27e093ea155c4.tar.lz
gpt4free-b0fba66b7cb029bf0a14a758e3e27e093ea155c4.tar.xz
gpt4free-b0fba66b7cb029bf0a14a758e3e27e093ea155c4.tar.zst
gpt4free-b0fba66b7cb029bf0a14a758e3e27e093ea155c4.zip
-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())