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

XFEstudio/gpt4free

feat(g4f/Provider/HuggingChat.py): update model list and aliases

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

代码差异

2 个文件 +27 -14
Modified g4f/Provider/HuggingChat.py +6 -6
@@ -18,9 +18,9 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
18 18 'CohereForAI/c4ai-command-r-plus-08-2024',
19 19 'Qwen/Qwen2.5-72B-Instruct',
20 20 'mistralai/Mixtral-8x7B-Instruct-v0.1',
21 'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO',
22 'mistralai/Mistral-7B-Instruct-v0.3',
23 'microsoft/Phi-3-mini-4k-instruct',
21 'NousResearch/Hermes-3-Llama-3.1-8B',
22 'mistralai/Mistral-Nemo-Instruct-2407',
23 'microsoft/Phi-3.5-mini-instruct',
24 24 ]
25 25
26 26 model_aliases = {
@@ -28,9 +28,9 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
28 28 "command-r-plus": "CohereForAI/c4ai-command-r-plus-08-2024",
29 29 "qwen-2-72b": "Qwen/Qwen2.5-72B-Instruct",
30 30 "mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
31 "mixtral-8x7b-dpo": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
32 "mistral-7b": "mistralai/Mistral-7B-Instruct-v0.3",
33 "phi-3-mini-4k": "microsoft/Phi-3-mini-4k-instruct",
31 "hermes-3": "NousResearch/Hermes-3-Llama-3.1-8B",
32 "mistral-nemo": "mistralai/Mistral-Nemo-Instruct-2407",
33 "phi-3.5-mini": "microsoft/Phi-3.5-mini-instruct",
34 34 }
35 35
36 36 @classmethod
Modified g4f/models.py +21 -8
@@ -249,27 +249,39 @@ mixtral_8x22b = Model(
249 249 best_provider = IterListProvider([DeepInfraChat, Airforce])
250 250 )
251 251
252 mistral_nemo = Model(
253 name = "mistral-nemo",
254 base_provider = "Mistral",
255 best_provider = IterListProvider([HuggingChat, HuggingFace])
256 )
257
252 258
253 259 ### NousResearch ###
254 260 mixtral_8x7b_dpo = Model(
255 261 name = "mixtral-8x7b-dpo",
256 262 base_provider = "NousResearch",
257 best_provider = IterListProvider([HuggingChat, Airforce, HuggingFace])
263 best_provider = IterListProvider([Airforce])
258 264 )
259 265
260 ### Microsoft ###
261 phi_3_mini_4k = Model(
262 name = "phi-3-mini-4k",
263 base_provider = "Microsoft",
266 hermes_3 = Model(
267 name = "hermes-3",
268 base_provider = "NousResearch",
264 269 best_provider = IterListProvider([HuggingChat, HuggingFace])
265 270 )
266 271
272
273 ### Microsoft ###
267 274 phi_3_medium_4k = Model(
268 275 name = "phi-3-medium-4k",
269 276 base_provider = "Microsoft",
270 277 best_provider = IterListProvider([DeepInfraChat])
271 278 )
272 279
280 phi_3_5_mini = Model(
281 name = "phi-3.5-mini",
282 base_provider = "Microsoft",
283 best_provider = IterListProvider([HuggingChat, HuggingFace])
284 )
273 285
274 286 ### Google DeepMind ###
275 287 # gemini
@@ -800,18 +812,19 @@ class ModelUtils:
800 812 'mistral-7b': mistral_7b,
801 813 'mixtral-8x7b': mixtral_8x7b,
802 814 'mixtral-8x22b': mixtral_8x22b,
815 'mistral-nemo': mistral_nemo,
803 816
804 817
805 818 ### NousResearch ###
806 'mixtral-8x7b-dpo': mixtral_8x7b_dpo,
819 'mixtral-8x7b-dpo': mixtral_8x7b_dpo,
820 'hermes-3': hermes_3,
807 821
808 822 'yi-34b': yi_34b,
809 823
810 824
811 825 ### Microsoft ###
812 'phi-3-mini-4k': phi_3_mini_4k,
813 826 'phi_3_medium-4k': phi_3_medium_4k,
814
827 'phi-3.5-mini': phi_3_5_mini,
815 828
816 829 ### Google ###
817 830 # gemini