mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-24 13:07:53 +08:00
Add support for additional parameters in get_models method for BlackboxPro and GeminiPro classes
This commit is contained in:
@@ -1992,7 +1992,7 @@ class BlackboxPro(AsyncGeneratorProvider, ProviderModelMixin):
|
||||
return cls.fallback_models
|
||||
|
||||
@classmethod
|
||||
def get_models(cls) -> list:
|
||||
def get_models(cls, **kwargs) -> list:
|
||||
"""
|
||||
Returns a list of available models based on authorization status.
|
||||
Authorized users get the full list of models.
|
||||
|
||||
@@ -42,7 +42,7 @@ class GeminiPro(AsyncGeneratorProvider, ProviderModelMixin):
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def get_models(cls, api_key: str = None, api_base: str = api_base) -> list[str]:
|
||||
def get_models(cls, api_key: str = None, api_base: str = api_base, **kwargs) -> list[str]:
|
||||
if not api_key:
|
||||
return cls.fallback_models
|
||||
if not cls.models:
|
||||
|
||||
Reference in New Issue
Block a user