Skip to content

Commit

Permalink
Fix missing model in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Jan 26, 2025
1 parent ab04d1d commit ca323b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions g4f/Provider/needs_auth/HuggingFaceAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class HuggingFaceAPI(OpenaiTemplate):

@classmethod
def get_models(cls, **kwargs):
HuggingChat.get_models()
cls.models = HuggingChat.text_models
cls.vision_models = HuggingChat.vision_models
if not cls.models:
HuggingChat.get_models()
cls.models = list(set(HuggingChat.text_models + cls.vision_models))
return cls.models

@classmethod
Expand Down

0 comments on commit ca323b1

Please sign in to comment.