XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Add support for additional parameters in get_models method for BlackboxPro and GeminiPro classes

1032b165
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +2 -2
Modified g4f/Provider/needs_auth/BlackboxPro.py +1 -1
@@ -1992,7 +1992,7 @@ class BlackboxPro(AsyncGeneratorProvider, ProviderModelMixin):
1992 1992 return cls.fallback_models
1993 1993
1994 1994 @classmethod
1995 def get_models(cls) -> list:
1995 def get_models(cls, **kwargs) -> list:
1996 1996 """
1997 1997 Returns a list of available models based on authorization status.
1998 1998 Authorized users get the full list of models.
Modified g4f/Provider/needs_auth/GeminiPro.py +1 -1
@@ -42,7 +42,7 @@ class GeminiPro(AsyncGeneratorProvider, ProviderModelMixin):
42 42 ]
43 43
44 44 @classmethod
45 def get_models(cls, api_key: str = None, api_base: str = api_base) -> list[str]:
45 def get_models(cls, api_key: str = None, api_base: str = api_base, **kwargs) -> list[str]:
46 46 if not api_key:
47 47 return cls.fallback_models
48 48 if not cls.models: