mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
new gpt-4 beating opensource models
This commit is contained in:
parent
ed8afc20e8
commit
2fad27b2c5
4 changed files with 26 additions and 17 deletions
|
|
@ -14,13 +14,12 @@ class HuggingChat(AsyncGeneratorProvider, ProviderModelMixin):
|
|||
working = True
|
||||
default_model = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
||||
models = [
|
||||
"mistralai/Mixtral-8x7B-Instruct-v0.1",
|
||||
"google/gemma-7b-it",
|
||||
"meta-llama/Llama-2-70b-chat-hf",
|
||||
"NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
||||
"codellama/CodeLlama-34b-Instruct-hf",
|
||||
"mistralai/Mistral-7B-Instruct-v0.2",
|
||||
"openchat/openchat-3.5-0106",
|
||||
"HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1",
|
||||
'CohereForAI/c4ai-command-r-plus',
|
||||
'mistralai/Mixtral-8x7B-Instruct-v0.1',
|
||||
'google/gemma-1.1-7b-it',
|
||||
'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO',
|
||||
'mistralai/Mistral-7B-Instruct-v0.2'
|
||||
]
|
||||
model_aliases = {
|
||||
"openchat/openchat_3.5": "openchat/openchat-3.5-0106",
|
||||
|
|
@ -48,6 +47,7 @@ class HuggingChat(AsyncGeneratorProvider, ProviderModelMixin):
|
|||
**kwargs
|
||||
) -> AsyncResult:
|
||||
options = {"model": cls.get_model(model)}
|
||||
|
||||
system_prompt = "\n".join([message["content"] for message in messages if message["role"] == "system"])
|
||||
if system_prompt:
|
||||
options["preprompt"] = system_prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue