返回提交历史
Modified
g4f/Provider/HuggingChat.py
+2
-4
Modified
g4f/Provider/HuggingFace.py
+2
-4
Modified
g4f/models.py
+1
-1
XFEstudio/gpt4free
refactor(g4f/Provider/HuggingFace.py, g4f/Provider/HuggingChat.py): update provider models and aliases
abefd7f3
代码差异
3 个文件
+5
-9
@@ -14,8 +14,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
14
14
default_model = "meta-llama/Meta-Llama-3.1-70B-Instruct"
15
15
models = [
16
16
'meta-llama/Meta-Llama-3.1-70B-Instruct',
17
'meta-llama/Meta-Llama-3.1-405B-Instruct-FP8',
18
'CohereForAI/c4ai-command-r-plus',
17
'CohereForAI/c4ai-command-r-plus-08-2024',
19
18
'mistralai/Mixtral-8x7B-Instruct-v0.1',
20
19
'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO',
21
20
'01-ai/Yi-1.5-34B-Chat',
@@ -25,8 +24,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
25
24
26
25
model_aliases = {
27
26
"llama-3.1-70b": "meta-llama/Meta-Llama-3.1-70B-Instruct",
28
"llama-3.1-405b": "meta-llama/Meta-Llama-3.1-405B-Instruct-FP8",
29
"command-r-plus": "CohereForAI/c4ai-command-r-plus",
27
"command-r-plus": "CohereForAI/c4ai-command-r-plus-08-2024",
30
28
"mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
31
29
"mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
32
30
"yi-1.5-34b": "01-ai/Yi-1.5-34B-Chat",
@@ -17,8 +17,7 @@ class HuggingFace(AsyncGeneratorProvider, ProviderModelMixin):
17
17
default_model = "meta-llama/Meta-Llama-3.1-70B-Instruct"
18
18
models = [
19
19
'meta-llama/Meta-Llama-3.1-70B-Instruct',
20
'meta-llama/Meta-Llama-3.1-405B-Instruct-FP8',
21
'CohereForAI/c4ai-command-r-plus',
20
'CohereForAI/c4ai-command-r-plus-08-2024',
22
21
'mistralai/Mixtral-8x7B-Instruct-v0.1',
23
22
'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO',
24
23
'01-ai/Yi-1.5-34B-Chat',
@@ -28,8 +27,7 @@ class HuggingFace(AsyncGeneratorProvider, ProviderModelMixin):
28
27
29
28
model_aliases = {
30
29
"llama-3.1-70b": "meta-llama/Meta-Llama-3.1-70B-Instruct",
31
"llama-3.1-405b": "meta-llama/Meta-Llama-3.1-405B-Instruct-FP8",
32
"command-r-plus": "CohereForAI/c4ai-command-r-plus",
30
"command-r-plus": "CohereForAI/c4ai-command-r-plus-08-2024",
33
31
"mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
34
32
"mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
35
33
"yi-1.5-34b": "01-ai/Yi-1.5-34B-Chat",
@@ -186,7 +186,7 @@ llama_3_1_70b = Model(
186
186
llama_3_1_405b = Model(
187
187
name = "llama-3.1-405b",
188
188
base_provider = "Meta",
189
best_provider = IterListProvider([HuggingChat, Blackbox, HuggingFace])
189
best_provider = IterListProvider([Blackbox])
190
190
)
191
191
192
192
### Mistral ###