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

This commit is contained in:
hlohaus
2025-12-09 19:12:58 +01:00
parent 0366acbcd1
commit 1032b165fe
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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: