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

XFEstudio/gpt4free

fix(Provider): add **kwargs to HuggingFaceInference.get_models() to prevent NameError

637fe4ca
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/needs_auth/hf/HuggingFaceInference.py +1 -1
@@ -34,7 +34,7 @@ class HuggingFaceInference(AsyncGeneratorProvider, ProviderModelMixin):
34 34 model_data: dict[str, dict] = {}
35 35
36 36 @classmethod
37 def get_models(cls) -> list[str]:
37 def get_models(cls, **kwargs) -> list[str]:
38 38 if not cls.models:
39 39 models = text_models.copy()
40 40 url = "https://huggingface.co/api/models?inference=warm&pipeline_tag=text-generation"