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

XFEstudio/gpt4free

Fix missing model in unittest

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

代码差异

1 个文件 +3 -3
Modified g4f/Provider/needs_auth/HuggingFaceAPI.py +3 -3
@@ -19,9 +19,9 @@ class HuggingFaceAPI(OpenaiTemplate):
19 19
20 20 @classmethod
21 21 def get_models(cls, **kwargs):
22 HuggingChat.get_models()
23 cls.models = HuggingChat.text_models
24 cls.vision_models = HuggingChat.vision_models
22 if not cls.models:
23 HuggingChat.get_models()
24 cls.models = list(set(HuggingChat.text_models + cls.vision_models))
25 25 return cls.models
26 26
27 27 @classmethod