返回提交历史
Modified
g4f/Provider/Blackbox.py
+76
-22
XFEstudio/gpt4free
add new agent models
e1d209ea
代码差异
1 个文件
+76
-22
@@ -29,28 +29,46 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
29
29
image_models = ['ImageGeneration']
30
30
models = [
31
31
default_model,
32
'blackboxai-pro',
33
*image_models,
34
"llama-3.1-8b",
35
'llama-3.1-70b',
36
'llama-3.1-405b',
37
'gpt-4o',
38
'gemini-pro',
39
'gemini-1.5-flash',
40
'claude-sonnet-3.5',
41
'PythonAgent',
42
'JavaAgent',
43
'JavaScriptAgent',
44
'HTMLAgent',
45
'GoogleCloudAgent',
46
'AndroidDeveloper',
47
'SwiftDeveloper',
48
'Next.jsAgent',
49
'MongoDBAgent',
50
'PyTorchAgent',
51
'ReactAgent',
52
'XcodeAgent',
53
'AngularJSAgent',
32
'blackboxai-pro',
33
*image_models,
34
"llama-3.1-8b",
35
'llama-3.1-70b',
36
'llama-3.1-405b',
37
'gpt-4o',
38
'gemini-pro',
39
'gemini-1.5-flash',
40
'claude-sonnet-3.5',
41
'PythonAgent',
42
'JavaAgent',
43
'JavaScriptAgent',
44
'HTMLAgent',
45
'GoogleCloudAgent',
46
'AndroidDeveloper',
47
'SwiftDeveloper',
48
'Next.jsAgent',
49
'MongoDBAgent',
50
'PyTorchAgent',
51
'ReactAgent',
52
'XcodeAgent',
53
'AngularJSAgent',
54
'HerokuAgent',
55
'GodotAgent',
56
'GoAgent',
57
'GitlabAgent',
58
'GitAgent',
59
'RepoMap',
60
'FlaskAgent',
61
'FirebaseAgent',
62
'FastAPIAgent',
63
'ErlangAgent',
64
'ElectronAgent',
65
'DockerAgent',
66
'DigitalOceanAgent',
67
'BitbucketAgent',
68
'AzureAgent',
69
'FlutterAgent',
70
'YoutubeAgent',
71
'builderAgent',
54
72
]
55
73
56
74
agentMode = {
@@ -58,6 +76,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
58
76
}
59
77
60
78
trendingAgentMode = {
79
"blackboxai": {},
61
80
"blackboxai": {},
62
81
"gemini-1.5-flash": {'mode': True, 'id': 'Gemini'},
63
82
"llama-3.1-8b": {'mode': True, 'id': "llama-3.1-8b"},
@@ -77,6 +96,24 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
77
96
'ReactAgent': {'mode': True, 'id': "React Agent"},
78
97
'XcodeAgent': {'mode': True, 'id': "Xcode Agent"},
79
98
'AngularJSAgent': {'mode': True, 'id': "AngularJS Agent"},
99
'HerokuAgent': {'mode': True, 'id': "Heroku Agent"},
100
'GodotAgent': {'mode': True, 'id': "Godot Agent"},
101
'GoAgent': {'mode': True, 'id': "Go Agent"},
102
'GitlabAgent': {'mode': True, 'id': "Gitlab Agent"},
103
'GitAgent': {'mode': True, 'id': "Git Agent"},
104
'RepoMap': {'mode': True, 'id': "RepoMap"},
105
'FlaskAgent': {'mode': True, 'id': "FlaskAgentTrendID"},
106
'FirebaseAgent': {'mode': True, 'id': "FirebaseAgentTrendID"},
107
'FastAPIAgent': {'mode': True, 'id': "FastAPIAgentTrendID"},
108
'ErlangAgent': {'mode': True, 'id': "ErlangAgentTrendID"},
109
'ElectronAgent': {'mode': True, 'id': "ElectronAgentTrendID"},
110
'DockerAgent': {'mode': True, 'id': "DockerAgentTrendID"},
111
'DigitalOceanAgent': {'mode': True, 'id': "DigitalOceanAgentTrendID"},
112
'BitbucketAgent': {'mode': True, 'id': "BitbucketAgentTrendID"},
113
'AzureAgent': {'mode': True, 'id': "AzureAgentTrendID"},
114
'FlutterAgent': {'mode': True, 'id': "FlutterAgentTrendID"},
115
'YoutubeAgent': {'mode': True, 'id': "YoutubeAgentTrendID"},
116
'builderAgent': {'mode': True, 'id': "builderAgentTrendID"},
80
117
}
81
118
82
119
userSelectedModel = {
@@ -101,8 +138,25 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
101
138
'ReactAgent': '@React Agent',
102
139
'XcodeAgent': '@Xcode Agent',
103
140
'AngularJSAgent': '@AngularJS Agent',
141
'HerokuAgent': '@Heroku Agent',
142
'GodotAgent': '@Godot Agent',
143
'GoAgent': '@Go Agent',
144
'GitlabAgent': '@Gitlab Agent',
145
'GitAgent': '@Git Agent',
104
146
'blackboxai-pro': '@BLACKBOXAI-PRO',
105
147
'ImageGeneration': '@Image Generation',
148
'FlaskAgent': '@Flask Agent',
149
'FirebaseAgent': '@Firebase Agent',
150
'FastAPIAgent': '@FastAPI Agent',
151
'ErlangAgent': '@Erlang Agent',
152
'ElectronAgent': '@Electron Agent',
153
'DockerAgent': '@Docker Agent',
154
'DigitalOceanAgent': '@DigitalOcean Agent',
155
'BitbucketAgent': '@Bitbucket Agent',
156
'AzureAgent': '@Azure Agent',
157
'FlutterAgent': '@Flutter Agent',
158
'YoutubeAgent': '@Youtube Agent',
159
'builderAgent': '@builder Agent',
106
160
}
107
161
108
162
model_referers = {