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

XFEstudio/gpt4free

Updates for Blackbox and DeepInfraChat providers new models (#2608)

* Fixed the model name in the Blackbox.py provider in the vision_models list, the DeepSeek-R1 model * Update g4f/Provider/Blackbox.py * Update docs/providers-and-models.md * Uodate g4f/models.py g4f/Provider/DeepInfraChat.py docs/providers-and-models.md --------- Co-authored-by: kqlio67 <>

a6c64b7d
kqlio67 <166700875+kqlio67@users.noreply.github.com>
提交于

代码差异

4 个文件 +11 -10
Modified docs/providers-and-models.md +3 -3
@@ -40,7 +40,7 @@ This document provides an overview of various AI providers and models, including
40 40 |[aichatfree.info](https://aichatfree.info)|No auth required|`g4f.Provider.AIChatFree`|`gemini-1.5-pro` _**(1+)**_|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
41 41 |[aiuncensored.info/ai_uncensored](https://www.aiuncensored.info/ai_uncensored)|Optional API key|`g4f.Provider.AIUncensored`|`hermes-3`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
42 42 |[autonomous.ai](https://www.autonomous.ai/anon/)|No auth required|`g4f.Provider.AutonomousAI`|`llama-3.3-70b, qwen-2.5-coder-32b, hermes-3, llama-3.2-90b, llama-3.3-70b, llama-3-2-70b`|✔|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
43 |[blackbox.ai](https://www.blackbox.ai)|No auth required|`g4f.Provider.Blackbox`|`blackboxai, gpt-4, gpt-4o, gemini-1.5-flash, gemini-1.5-pro, claude-3.5-sonnet, blackboxai-pro, llama-3.1-8b, llama-3.1-70b, llama-3-1-405b, llama-3.3-70b, mixtral-7b, deepseek-chat, dbrx-instruct, qwq-32b, hermes-2-dpo, deepseek-r1` _**(+31)**_|`flux`|`blackboxai, gpt-4o, gemini-1.5-pro, gemini-1.5-flash, llama-3.1-8b, llama-3.1-70b, llama-3.1-405b, deepseek-r1`|✔|![](https://img.shields.io/badge/Active-brightgreen)|
43 |[blackbox.ai](https://www.blackbox.ai)|No auth required|`g4f.Provider.Blackbox`|`blackboxai, gpt-4, gpt-4o, gemini-1.5-flash, gemini-1.5-pro, claude-3.5-sonnet, blackboxai-pro, llama-3.1-8b, llama-3.1-70b, llama-3-1-405b, llama-3.3-70b, mixtral-7b, deepseek-chat, dbrx-instruct, qwq-32b, hermes-2-dpo, deepseek-r1` _**(+31)**_|`flux`|`blackboxai, gpt-4o, gemini-1.5-pro, gemini-1.5-flash, llama-3.1-8b, llama-3.1-70b, llama-3.1-405b`|✔|![](https://img.shields.io/badge/Active-brightgreen)|
44 44 |[cablyai.com](https://cablyai.com)|No auth required|`g4f.Provider.CablyAI`|`cably-80b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
45 45 |[chatglm.cn](https://chatglm.cn)|No auth required|`g4f.Provider.ChatGLM`|`glm-4`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
46 46 |[chatgpt.com](https://chatgpt.com)|No auth required|`g4f.Provider.ChatGpt`|✔ _**(+7)**_|❌|❌|✔|![Error](https://img.shields.io/badge/HTTPError-f48d37)|
@@ -50,7 +50,7 @@ This document provides an overview of various AI providers and models, including
50 50 |[copilot.microsoft.com](https://copilot.microsoft.com)|Optional API key|`g4f.Provider.Copilot`|`gpt-4, gpt-4o`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
51 51 |[darkai.foundation](https://darkai.foundation)|No auth required|`g4f.Provider.DarkAI`|`gpt-3.5-turbo, gpt-4o, llama-3.1-70b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
52 52 |[duckduckgo.com/aichat](https://duckduckgo.com/aichat)|No auth required|`g4f.Provider.DDG`|`gpt-4, gpt-4o-mini, claude-3-haiku, llama-3.1-70b, mixtral-8x7b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
53 |[deepinfra.com/chat](https://deepinfra.com/chat)|No auth required|`g4f.Provider.DeepInfraChat`|`llama-3.1-8b, llama-3.1-70b, qwq-32b, wizardlm-2-8x22b, wizardlm-2-7b, qwen-2.5-72b, qwen-2.5-coder-32b, nemotron-70b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
53 |[deepinfra.com/chat](https://deepinfra.com/chat)|No auth required|`g4f.Provider.DeepInfraChat`|`llama-3.1-8b, llama-3.1-70b, deepseek-chat, qwq-32b, wizardlm-2-8x22b, wizardlm-2-7b, qwen-2.5-72b, qwen-2.5-coder-32b, nemotron-70b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
54 54 |[chat10.free2gpt.xyz](https://chat10.free2gpt.xyz)|No auth required|`g4f.Provider.Free2GPT`|`mistral-7b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
55 55 |[freegptsnav.aifree.site](https://freegptsnav.aifree.site)|No auth required|`g4f.Provider.FreeGpt`|`gemini-1.5-pro`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
56 56 |[app.giz.ai/assistant](https://app.giz.ai/assistant)|No auth required|`g4f.Provider.GizAI`|`gemini-1.5-flash`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
@@ -172,7 +172,7 @@ This document provides an overview of various AI providers and models, including
172 172 |qwq-32b|Qwen|4+ Providers|[huggingface.co](https://huggingface.co/Qwen/QwQ-32B-Preview)|
173 173 |qvq-72b|Qwen|1+ Providers|[huggingface.co](https://huggingface.co/Qwen/QVQ-72B-Preview)|
174 174 |pi|Inflection|1+ Providers|[inflection.ai](https://inflection.ai/blog/inflection-2-5)|
175 |deepseek-chat|DeepSeek|3+ Providers|[huggingface.co](https://huggingface.co/deepseek-ai/deepseek-llm-67b-chat)|
175 |deepseek-chat|DeepSeek|4+ Providers|[huggingface.co](https://huggingface.co/deepseek-ai/deepseek-llm-67b-chat)|
176 176 |deepseek-r1|DeepSeek|5+ Providers|[api-docs.deepseek.com](https://api-docs.deepseek.com/news/news250120)|
177 177 |grok-2|x.ai|1+ Providers|[x.ai](https://x.ai/blog/grok-2)|
178 178 |sonar-online|Perplexity AI|1+ Providers|[docs.perplexity.ai](https://docs.perplexity.ai/)|
Modified g4f/Provider/Blackbox.py +5 -6
@@ -38,20 +38,19 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
38 38 default_vision_model = default_model
39 39 default_image_model = 'ImageGeneration'
40 40 image_models = [default_image_model, "ImageGeneration2"]
41 vision_models = [default_vision_model, 'gpt-4o', 'gemini-pro', 'gemini-1.5-flash', 'llama-3.1-8b', 'llama-3.1-70b', 'llama-3.1-405b', 'deepseek-r1']
41 vision_models = [default_vision_model, 'gpt-4o', 'gemini-pro', 'gemini-1.5-flash', 'llama-3.1-8b', 'llama-3.1-70b', 'llama-3.1-405b']
42 42
43 userSelectedModel = ['gpt-4o', 'gemini-pro', 'claude-sonnet-3.5', 'blackboxai-pro']
43 userSelectedModel = ['gpt-4o', 'gemini-pro', 'claude-sonnet-3.5', 'deepseek-r1', 'deepseek-v3', 'blackboxai-pro']
44 44
45 45 agentMode = {
46 46 'ImageGeneration': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "Image Generation"},
47 47 #
48 48 'Meta-Llama-3.3-70B-Instruct-Turbo': {'mode': True, 'id': "meta-llama/Llama-3.3-70B-Instruct-Turbo", 'name': "Meta-Llama-3.3-70B-Instruct-Turbo"},
49 'Mistral-(7B)-Instruct-v0.': {'mode': True, 'id': "mistralai/Mistral-7B-Instruct-v0.2", 'name': "Mistral-(7B)-Instruct-v0.2"},
49 'Mistral-(7B)-Instruct-v0.2': {'mode': True, 'id': "mistralai/Mistral-7B-Instruct-v0.2", 'name': "Mistral-(7B)-Instruct-v0.2"},
50 50 'DeepSeek-LLM-Chat-(67B)': {'mode': True, 'id': "deepseek-ai/deepseek-llm-67b-chat", 'name': "DeepSeek-LLM-Chat-(67B)"},
51 51 'DBRX-Instruct': {'mode': True, 'id': "databricks/dbrx-instruct", 'name': "DBRX-Instruct"},
52 52 'Qwen-QwQ-32B-Preview': {'mode': True, 'id': "Qwen/QwQ-32B-Preview", 'name': "Qwen-QwQ-32B-Preview"},
53 53 'Nous-Hermes-2-Mixtral-8x7B-DPO': {'mode': True, 'id': "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO", 'name': "Nous-Hermes-2-Mixtral-8x7B-DPO"},
54 'DeepSeek-R1': {'mode': True, 'id': "deepseek-reasoner", 'name': "DeepSeek-R1"}
55 54 }
56 55
57 56 trendingAgentMode = {
@@ -106,12 +105,12 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
106 105 "gemini-1.5-pro": "gemini-pro",
107 106 "claude-3.5-sonnet": "claude-sonnet-3.5",
108 107 "llama-3.3-70b": "Meta-Llama-3.3-70B-Instruct-Turbo",
109 "mixtral-7b": "Mistral-(7B)-Instruct-v0.",
108 "mixtral-7b": "Mistral-(7B)-Instruct-v0.2",
110 109 "deepseek-chat": "DeepSeek-LLM-Chat-(67B)",
111 110 "dbrx-instruct": "DBRX-Instruct",
112 111 "qwq-32b": "Qwen-QwQ-32B-Preview",
113 112 "hermes-2-dpo": "Nous-Hermes-2-Mixtral-8x7B-DPO",
114 "deepseek-r1": "DeepSeek-R1",
113 "deepseek-chat": "deepseek-v3",
115 114
116 115 ### image ###
117 116 "flux": "ImageGeneration",
Modified g4f/Provider/DeepInfraChat.py +2 -0
@@ -14,6 +14,7 @@ class DeepInfraChat(OpenaiTemplate):
14 14 'meta-llama/Meta-Llama-3.1-8B-Instruct',
15 15 default_model,
16 16 'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo',
17 'deepseek-ai/DeepSeek-V3',
17 18 'Qwen/QwQ-32B-Preview',
18 19 'microsoft/WizardLM-2-8x22B',
19 20 'microsoft/WizardLM-2-7B',
@@ -26,6 +27,7 @@ class DeepInfraChat(OpenaiTemplate):
26 27 "llama-3.1-8b": "meta-llama/Meta-Llama-3.1-8B-Instruct",
27 28 "llama-3.3-70b": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
28 29 "llama-3.1-70b": "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
30 "deepseek-chat": "deepseek-ai/DeepSeek-V3",
29 31 "qwq-32b": "Qwen/QwQ-32B-Preview",
30 32 "wizardlm-2-8x22b": "microsoft/WizardLM-2-8x22B",
31 33 "wizardlm-2-7b": "microsoft/WizardLM-2-7B",
Modified g4f/models.py +1 -1
@@ -465,7 +465,7 @@ pi = Model(
465 465 deepseek_chat = Model(
466 466 name = 'deepseek-chat',
467 467 base_provider = 'DeepSeek',
468 best_provider = IterListProvider([Blackbox, Jmuz, PollinationsAI])
468 best_provider = IterListProvider([Blackbox, DeepInfraChat, Jmuz, PollinationsAI])
469 469 )
470 470
471 471 deepseek_r1 = Model(