返回提交历史
Modified
g4f/Provider/HuggingChat.py
+1
-3
Modified
g4f/Provider/HuggingFace.py
+1
-3
Modified
g4f/models.py
+0
-11
XFEstudio/gpt4free
refactor(models): update HuggingChat, HuggingFace provider models and aliases
11f702e0
代码差异
3 个文件
+2
-17
@@ -13,11 +13,10 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
13
13
supports_stream = True
14
14
default_model = "meta-llama/Meta-Llama-3.1-70B-Instruct"
15
15
models = [
16
'meta-llama/Meta-Llama-3.1-70B-Instruct',
16
default_model,
17
17
'CohereForAI/c4ai-command-r-plus-08-2024',
18
18
'mistralai/Mixtral-8x7B-Instruct-v0.1',
19
19
'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO',
20
'01-ai/Yi-1.5-34B-Chat',
21
20
'mistralai/Mistral-7B-Instruct-v0.3',
22
21
'microsoft/Phi-3-mini-4k-instruct',
23
22
]
@@ -27,7 +26,6 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
27
26
"command-r-plus": "CohereForAI/c4ai-command-r-plus-08-2024",
28
27
"mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
29
28
"mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
30
"yi-1.5-34b": "01-ai/Yi-1.5-34B-Chat",
31
29
"mistral-7b": "mistralai/Mistral-7B-Instruct-v0.3",
32
30
"phi-3-mini-4k": "microsoft/Phi-3-mini-4k-instruct",
33
31
}
@@ -16,11 +16,10 @@ class HuggingFace(AsyncGeneratorProvider, ProviderModelMixin):
16
16
supports_message_history = True
17
17
default_model = "meta-llama/Meta-Llama-3.1-70B-Instruct"
18
18
models = [
19
'meta-llama/Meta-Llama-3.1-70B-Instruct',
19
default_model,
20
20
'CohereForAI/c4ai-command-r-plus-08-2024',
21
21
'mistralai/Mixtral-8x7B-Instruct-v0.1',
22
22
'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO',
23
'01-ai/Yi-1.5-34B-Chat',
24
23
'mistralai/Mistral-7B-Instruct-v0.3',
25
24
'microsoft/Phi-3-mini-4k-instruct',
26
25
]
@@ -30,7 +29,6 @@ class HuggingFace(AsyncGeneratorProvider, ProviderModelMixin):
30
29
"command-r-plus": "CohereForAI/c4ai-command-r-plus-08-2024",
31
30
"mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
32
31
"mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
33
"yi-1.5-34b": "01-ai/Yi-1.5-34B-Chat",
34
32
"mistral-7b": "mistralai/Mistral-7B-Instruct-v0.3",
35
33
"phi-3-mini-4k": "microsoft/Phi-3-mini-4k-instruct",
36
34
}
@@ -202,13 +202,6 @@ mistral_7b = Model(
202
202
best_provider = IterListProvider([HuggingChat, HuggingFace, DeepInfra])
203
203
)
204
204
205
### 01-ai ###
206
yi_1_5_34b = Model(
207
name = "yi-1.5-34b",
208
base_provider = "01-ai",
209
best_provider = IterListProvider([HuggingChat, HuggingFace])
210
)
211
212
205
213
206
### Microsoft ###
214
207
phi_3_mini_4k = Model(
@@ -548,10 +541,6 @@ class ModelUtils:
548
541
### Mistral ###
549
542
'mixtral-8x7b': mixtral_8x7b,
550
543
'mistral-7b': mistral_7b,
551
552
553
### 01-ai ###
554
'yi-1.5-34b': yi_1_5_34b,
555
544
556
545
557
546
### Microsoft ###