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

XFEstudio/gpt4free

Fix unittests

a862b683
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

5 个文件 +16 -25
Modified g4f/Provider/DeepInfraChat.py +2 -0
@@ -51,7 +51,9 @@ class DeepInfraChat(OpenaiTemplate):
51 51 "qwen-3-32b": "Qwen/Qwen3-32B",
52 52 "qwen-3-14b": "Qwen/Qwen3-14B",
53 53 "llama-4-maverick": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
54 "llama-4-maverick-17b": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
54 55 "llama-4-scout": "meta-llama/Llama-4-Scout-17B-16E-Instruct",
56 "llama-4-scout-17b": "meta-llama/Llama-4-Scout-17B-16E-Instruct",
55 57 "phi-4-reasoning-plus": "microsoft/phi-4-reasoning-plus",
56 58 #"": "meta-llama/Llama-Guard-4-12B",
57 59 "qwq-32b": "Qwen/QwQ-32B",
Modified g4f/Provider/LambdaChat.py +1 -0
@@ -35,6 +35,7 @@ class LambdaChat(AsyncGeneratorProvider, ProviderModelMixin):
35 35 ]
36 36 model_aliases = {
37 37 "deepseek-v3": default_model,
38 "hermes-3": "hermes3-405b-fp8-128k",
38 39 "hermes-3-405b": ["hermes3-405b-fp8-128k", "hermes-3-llama-3.1-405b-fp8"],
39 40 "nemotron-70b": "llama3.1-nemotron-70b-instruct",
40 41 "llama-3.3-70b": "llama3.3-70b-instruct-fp8",
Modified g4f/Provider/PollinationsAI.py +2 -0
@@ -95,6 +95,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
95 95 "gpt-4": "openai-large",
96 96 "gpt-4o": "openai-large",
97 97 "gpt-4.1": "openai-large",
98 "gpt-4o-audio": "openai-audio",
98 99 "o4-mini": "openai-reasoning",
99 100 "gpt-4.1-mini": "openai",
100 101 "command-r-plus": "command-r",
@@ -103,6 +104,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
103 104 "qwen-2.5-coder-32b": "qwen-coder",
104 105 "llama-3.3-70b": "llama",
105 106 "llama-4-scout": "llamascout",
107 "llama-4-scout-17b": "llamascout",
106 108 "mistral-small-3.1-24b": "mistral",
107 109 "deepseek-r1": "deepseek-reasoning-large",
108 110 "deepseek-r1-distill-llama-70b": "deepseek-reasoning-large",
Modified g4f/Provider/hf_space/StabilityAI_SD35Large.py +1 -1
@@ -19,7 +19,7 @@ class StabilityAI_SD35Large(AsyncGeneratorProvider, ProviderModelMixin):
19 19
20 20 default_model = 'stabilityai-stable-diffusion-3-5-large'
21 21 default_image_model = default_model
22 model_aliases = {"sd-3.5-large": default_model}
22 model_aliases = {"stable-diffusion-3.5-large": default_model}
23 23 image_models = list(model_aliases.keys())
24 24 models = image_models
25 25
Modified g4f/models.py +10 -24
@@ -511,12 +511,6 @@ command_r = Model(
511 511 best_provider = HuggingSpace
512 512 )
513 513
514 command_r_plus_08_2024 = Model(
515 name = 'command-r-plus-08-2024',
516 base_provider = 'CohereForAI',
517 best_provider = IterListProvider([PollinationsAI, HuggingSpace])
518 )
519
520 514 command_r_08_2024 = Model(
521 515 name = 'command-r-08-2024',
522 516 base_provider = 'CohereForAI',
@@ -598,7 +592,7 @@ qwen_2_5_1m = Model(
598 592 )
599 593
600 594 qwen_2_5_max = Model(
601 name = 'qwen-2-5-max',
595 name = 'qwen-2.5-max',
602 596 base_provider = 'Qwen',
603 597 best_provider = HuggingSpace
604 598 )
@@ -629,43 +623,43 @@ qwen_2_5_vl_72b = Model(
629 623
630 624 # qwen3
631 625 qwen_3_235b = Model(
632 name = 'qwen3-235b',
626 name = 'qwen-3-235b',
633 627 base_provider = 'Qwen',
634 628 best_provider = IterListProvider([DeepInfraChat, HuggingSpace])
635 629 )
636 630
637 631 qwen_3_32b = Model(
638 name = 'qwen3-32b',
632 name = 'qwen-3-32b',
639 633 base_provider = 'Qwen',
640 634 best_provider = IterListProvider([DeepInfraChat, HuggingSpace])
641 635 )
642 636
643 637 qwen_3_30b = Model(
644 name = 'qwen3-30b',
638 name = 'qwen-3-30b',
645 639 base_provider = 'Qwen',
646 640 best_provider = IterListProvider([DeepInfraChat, HuggingSpace])
647 641 )
648 642
649 643 qwen_3_14b = Model(
650 name = 'qwen3-14b',
644 name = 'qwen-3-14b',
651 645 base_provider = 'Qwen',
652 646 best_provider = IterListProvider([DeepInfraChat, HuggingSpace])
653 647 )
654 648
655 649 qwen_3_4b = Model(
656 name = 'qwen3-4b',
650 name = 'qwen-3-4b',
657 651 base_provider = 'Qwen',
658 652 best_provider = HuggingSpace
659 653 )
660 654
661 655 qwen_3_1_7b = Model(
662 name = 'qwen3-1.7b',
656 name = 'qwen-3-1.7b',
663 657 base_provider = 'Qwen',
664 658 best_provider = HuggingSpace
665 659 )
666 660
667 661 qwen_3_0_6b = Model(
668 name = 'qwen3-0.6b',
662 name = 'qwen-3-0.6b',
669 663 base_provider = 'Qwen',
670 664 best_provider = HuggingSpace
671 665 )
@@ -689,12 +683,6 @@ qwq_32b_arliai = Model(
689 683 best_provider = Blackbox
690 684 )
691 685
692 qvq_72b = VisionModel(
693 name = 'qvq-72b',
694 base_provider = 'Qwen',
695 best_provider = HuggingSpace
696 )
697
698 686 ### Inflection ###
699 687 pi = Model(
700 688 name = 'pi',
@@ -840,7 +828,7 @@ glm_4 = Model(
840 828
841 829 ### MiniMax ###
842 830 mini_max = Model(
843 name = "MiniMax",
831 name = "minimax",
844 832 base_provider = "MiniMax",
845 833 best_provider = HailuoAI
846 834 )
@@ -972,7 +960,7 @@ flux_dev = ImageModel(
972 960 flux_schnell = ImageModel(
973 961 name = 'flux-schnell',
974 962 base_provider = 'Black Forest Labs',
975 best_provider = IterListProvider([PollinationsImage, HuggingSpace, HuggingChat, HuggingFace])
963 best_provider = IterListProvider([PollinationsImage, HuggingChat, HuggingFace])
976 964 )
977 965
978 966
@@ -1124,7 +1112,6 @@ class ModelUtils:
1124 1112
1125 1113 ### CohereForAI ###
1126 1114 command_r.name: command_r,
1127 command_r_plus_08_2024.name: command_r_plus_08_2024,
1128 1115 command_r_08_2024.name: command_r_08_2024,
1129 1116 command_r_plus.name: command_r_plus,
1130 1117 command_r7b_12_2024.name: command_r7b_12_2024,
@@ -1164,7 +1151,6 @@ class ModelUtils:
1164 1151 qwq_32b.name: qwq_32b,
1165 1152 qwq_32b_preview.name: qwq_32b_preview,
1166 1153 qwq_32b_arliai.name: qwq_32b_arliai,
1167 qvq_72b.name: qvq_72b,
1168 1154
1169 1155 ### Inflection ###
1170 1156 pi.name: pi,