XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

refactor(g4f/Provider/HuggingFace.py, g4f/Provider/HuggingChat.py): update provider models and aliases

abefd7f3
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

3 个文件 +5 -9
Modified g4f/Provider/HuggingChat.py +2 -4
@@ -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",
Modified g4f/Provider/HuggingFace.py +2 -4
@@ -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",
Modified g4f/models.py +1 -1
@@ -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 ###