返回提交历史
Modified
g4f/Provider/__init__.py
+0
-5
Deleted
g4f/Provider/needs_auth/GlhfChat.py
+0
-38
Modified
g4f/Provider/needs_auth/__init__.py
+0
-1
Modified
g4f/providers/any_model_map.py
+0
-10
XFEstudio/gpt4free
Remove GlhfChat provider and its references from the codebase
7b8553c3
代码差异
4 个文件
+0
-54
@@ -40,7 +40,6 @@ class ProviderLoader:
40
40
"GigaChat",
41
41
"GithubCopilot",
42
42
"GithubCopilotAPI",
43
"GlhfChat",
44
43
"GoogleAiMode",
45
44
"GoogleSearch",
46
45
"Grok",
@@ -249,10 +248,6 @@ class ProviderLoader:
249
248
from g4f.Provider.needs_auth.GithubCopilotAPI import GithubCopilotAPI
250
249
251
250
return GithubCopilotAPI
252
elif name == "GlhfChat":
253
from g4f.Provider.needs_auth.GlhfChat import GlhfChat
254
255
return GlhfChat
256
251
elif name == "GoogleAiMode":
257
252
from g4f.Provider.search.GoogleAiMode import GoogleAiMode
258
253
@@ -1,38 +0,0 @@
1
from __future__ import annotations
2
3
from ..template import OpenaiTemplate
4
5
6
class GlhfChat(OpenaiTemplate):
7
url = "https://glhf.chat"
8
login_url = "https://glhf.chat/user-settings/api"
9
base_url = "https://glhf.chat/api/openai/v1"
10
11
working = True
12
needs_auth = True
13
14
default_model = "hf:meta-llama/Llama-3.3-70B-Instruct"
15
models = [
16
"hf:meta-llama/Llama-3.1-405B-Instruct",
17
default_model,
18
"hf:deepseek-ai/DeepSeek-V3",
19
"hf:Qwen/QwQ-32B-Preview",
20
"hf:huihui-ai/Llama-3.3-70B-Instruct-abliterated",
21
"hf:anthracite-org/magnum-v4-12b",
22
"hf:meta-llama/Llama-3.1-70B-Instruct",
23
"hf:meta-llama/Llama-3.1-8B-Instruct",
24
"hf:meta-llama/Llama-3.2-3B-Instruct",
25
"hf:meta-llama/Llama-3.2-11B-Vision-Instruct",
26
"hf:meta-llama/Llama-3.2-90B-Vision-Instruct",
27
"hf:Qwen/Qwen2.5-72B-Instruct",
28
"hf:Qwen/Qwen2.5-Coder-32B-Instruct",
29
"hf:google/gemma-2-9b-it",
30
"hf:google/gemma-2-27b-it",
31
"hf:mistralai/Mistral-7B-Instruct-v0.3",
32
"hf:mistralai/Mixtral-8x7B-Instruct-v0.1",
33
"hf:mistralai/Mixtral-8x22B-Instruct-v0.1",
34
"hf:NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
35
"hf:Qwen/Qwen2.5-7B-Instruct",
36
"hf:upstage/SOLAR-10.7B-Instruct-v1.0",
37
"hf:nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",
38
]
@@ -18,7 +18,6 @@ from .GeminiCLI import GeminiCLI
18
18
from .GigaChat import GigaChat
19
19
from ..github import GithubCopilot
20
20
from .GithubCopilotAPI import GithubCopilotAPI
21
from .GlhfChat import GlhfChat
22
21
from .Grok import Grok
23
22
from .Groq import Groq
24
23
from .LMArena import LMArena
@@ -187,7 +187,6 @@ model_map = {
187
187
"HuggingFace": "meta-llama/Llama-3.1-8B-Instruct",
188
188
"Cerebras": "llama3.1-8b",
189
189
"Cloudflare": "@cf/meta/llama-3.1-8b-instruct-fp8",
190
"GlhfChat": "hf:meta-llama/Llama-3.1-8B-Instruct",
191
190
"HuggingChat": "meta-llama/Llama-3.1-8B-Instruct",
192
191
"Nvidia": "meta/llama-3.1-8b-instruct",
193
192
"OpenRouter": "meta-llama/llama-3.1-8b-instruct",
@@ -199,14 +198,12 @@ model_map = {
199
198
"llama-3.1-70b": {
200
199
"Together": "llama-3.1-70b",
201
200
"Cerebras": "llama3.1-70b",
202
"GlhfChat": "hf:meta-llama/Llama-3.1-70B-Instruct",
203
201
"Nvidia": "meta/llama-3.1-70b-instruct",
204
202
"OpenRouter": "meta-llama/llama-3.1-70b-instruct",
205
203
"Puter": "openrouter:meta-llama/llama-3.1-70b-instruct",
206
204
},
207
205
"llama-3.1-405b": {
208
206
"Together": "llama-3.1-405b",
209
"GlhfChat": "hf:meta-llama/Llama-3.1-405B-Instruct",
210
207
"Puter": [
211
208
"openrouter:meta-llama/llama-3.1-405b:free",
212
209
"openrouter:meta-llama/llama-3.1-405b",
@@ -216,7 +213,6 @@ model_map = {
216
213
"llama-3.2-3b": {
217
214
"Together": "llama-3.2-3b",
218
215
"Cloudflare": "@cf/meta/llama-3.2-3b-instruct",
219
"GlhfChat": "hf:meta-llama/Llama-3.2-3B-Instruct",
220
216
"Nvidia": "meta/llama-3.2-3b-instruct",
221
217
"OpenRouter": "meta-llama/llama-3.2-3b-instruct",
222
218
"Puter": [
@@ -356,7 +352,6 @@ model_map = {
356
352
"HuggingChat": "Qwen/Qwen2.5-Coder-32B-Instruct",
357
353
"HuggingFace": "Qwen/Qwen2.5-Coder-32B-Instruct",
358
354
"Cloudflare": "@cf/qwen/qwen2.5-coder-32b-instruct",
359
"GlhfChat": "hf:Qwen/Qwen2.5-Coder-32B-Instruct",
360
355
"OpenRouter": "qwen/qwen-2.5-coder-32b-instruct",
361
356
"Pollinations": "qwen-3-coder",
362
357
"Puter": [
@@ -393,7 +388,6 @@ model_map = {
393
388
"Together": "qwq-32b",
394
389
"HuggingChat": "qwq-32b",
395
390
"Cloudflare": "@cf/qwen/qwq-32b",
396
"GlhfChat": "hf:Qwen/QwQ-32B-Preview",
397
391
"LMArena": "qwq-32b",
398
392
"Puter": [
399
393
"openrouter:qwen/qwq-32b-preview",
@@ -937,7 +931,6 @@ model_map = {
937
931
},
938
932
"qwen-2.5-7b": {
939
933
"HuggingFace": "Qwen/Qwen2.5-7B-Instruct",
940
"GlhfChat": "hf:Qwen/Qwen2.5-7B-Instruct",
941
934
"HuggingChat": "Qwen/Qwen2.5-7B-Instruct",
942
935
"OpenRouter": "qwen/qwen-2.5-7b-instruct",
943
936
"Puter": [
@@ -957,7 +950,6 @@ model_map = {
957
950
"HuggingFace": "meta-llama/Llama-3.3-70B-Instruct",
958
951
"Cerebras": "llama-3.3-70b",
959
952
"Cloudflare": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
960
"GlhfChat": "hf:meta-llama/Llama-3.3-70B-Instruct",
961
953
"HuggingChat": "meta-llama/Llama-3.3-70B-Instruct",
962
954
"Nvidia": "meta/llama-3.3-70b-instruct",
963
955
"OpenRouter": "meta-llama/llama-3.3-70b-instruct",
@@ -1139,7 +1131,6 @@ model_map = {
1139
1131
"HuggingFace": "deepseek-ai/DeepSeek-V3",
1140
1132
"Airforce": "deepseek",
1141
1133
"DeepSeek": "deepseek-v3",
1142
"GlhfChat": "hf:deepseek-ai/DeepSeek-V3",
1143
1134
"HuggingChat": "deepseek-ai/DeepSeek-V3",
1144
1135
"PhindAi": "deepseek",
1145
1136
"Pollinations": "deepseek",
@@ -1166,7 +1157,6 @@ model_map = {
1166
1157
},
1167
1158
"qwen-2.5-72b": {
1168
1159
"HuggingFace": "Qwen/Qwen2.5-72B-Instruct",
1169
"GlhfChat": "hf:Qwen/Qwen2.5-72B-Instruct",
1170
1160
"HuggingChat": "Qwen/Qwen2.5-72B-Instruct",
1171
1161
"OpenRouter": "qwen/qwen-2.5-72b-instruct",
1172
1162
"Puter": [