返回提交历史
Modified
g4f/Provider/needs_auth/HuggingFaceAPI.py
+3
-3
XFEstudio/gpt4free
Fix missing model in unittest
ca323b11
代码差异
1 个文件
+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