diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2024-07-11 20:03:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 20:03:13 +0200 |
commit | 31edda55f75b85651998bc0a77f22e538accaa1f (patch) | |
tree | cfb769c3569449780c9edc5073eb47180e60655d /g4f/Provider/HuggingFace.py | |
parent | Merge pull request #2097 from gamelist1990/main (diff) | |
parent | Update g4f/models.py (diff) | |
download | gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.gz gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.bz2 gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.lz gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.xz gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.zst gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.zip |
Diffstat (limited to 'g4f/Provider/HuggingFace.py')
-rw-r--r-- | g4f/Provider/HuggingFace.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/g4f/Provider/HuggingFace.py b/g4f/Provider/HuggingFace.py index 6a05c26e..a5e27ccf 100644 --- a/g4f/Provider/HuggingFace.py +++ b/g4f/Provider/HuggingFace.py @@ -12,10 +12,16 @@ from ..requests.raise_for_status import raise_for_status class HuggingFace(AsyncGeneratorProvider, ProviderModelMixin): url = "https://huggingface.co/chat" working = True + needs_auth = True supports_message_history = True models = [ - "mistralai/Mixtral-8x7B-Instruct-v0.1", - "mistralai/Mistral-7B-Instruct-v0.2" + 'CohereForAI/c4ai-command-r-plus', + 'meta-llama/Meta-Llama-3-70B-Instruct', + 'mistralai/Mixtral-8x7B-Instruct-v0.1', + 'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO', + '01-ai/Yi-1.5-34B-Chat', + 'mistralai/Mistral-7B-Instruct-v0.2', + 'microsoft/Phi-3-mini-4k-instruct', ] default_model = "mistralai/Mixtral-8x7B-Instruct-v0.1" @@ -74,4 +80,4 @@ def format_prompt(messages: Messages) -> str: for idx, message in enumerate(messages) if message["role"] == "assistant" ]) - return f"{history}<s>[INST] {question} [/INST]"
\ No newline at end of file + return f"{history}<s>[INST] {question} [/INST]" |