Update api/config.py
Browse files- api/config.py +56 -57
api/config.py
CHANGED
@@ -23,68 +23,67 @@ common_headers = {
|
|
23 |
'Chrome/130.0.0.0 Safari/537.36',
|
24 |
}
|
25 |
|
26 |
-
# Header Configurations for Specific API Calls
|
27 |
-
def get_headers_api_chat(referer_url):
|
28 |
-
return {**common_headers, 'Content-Type': 'application/json', 'Referer': referer_url}
|
29 |
-
|
30 |
APP_SECRET = os.getenv("APP_SECRET")
|
31 |
|
32 |
-
# Models
|
33 |
-
|
34 |
-
"blackboxai",
|
35 |
-
"blackboxai-pro",
|
36 |
-
"flux",
|
37 |
-
"llama-3.1-8b",
|
38 |
-
"llama-3.1-70b",
|
39 |
-
"llama-3.1-405b",
|
40 |
-
"gpt-4o",
|
41 |
-
"gemini-pro",
|
42 |
-
"gemini-1.5-flash",
|
43 |
-
"claude-sonnet-3.5",
|
44 |
-
"PythonAgent",
|
45 |
-
"JavaAgent",
|
46 |
-
"JavaScriptAgent",
|
47 |
-
"HTMLAgent",
|
48 |
-
"GoogleCloudAgent",
|
49 |
-
"AndroidDeveloper",
|
50 |
-
"SwiftDeveloper",
|
51 |
-
"Next.jsAgent",
|
52 |
-
"MongoDBAgent",
|
53 |
-
"PyTorchAgent",
|
54 |
-
"ReactAgent",
|
55 |
-
"XcodeAgent",
|
56 |
-
"AngularJSAgent",
|
57 |
-
"HerokuAgent",
|
58 |
-
"GodotAgent",
|
59 |
-
"GoAgent",
|
60 |
-
"GitlabAgent",
|
61 |
-
"GitAgent",
|
62 |
-
"RepoMap",
|
63 |
-
"
|
64 |
-
"
|
65 |
-
"
|
66 |
-
"
|
67 |
-
"
|
68 |
-
"
|
69 |
-
"
|
70 |
-
"
|
71 |
-
"
|
72 |
-
"
|
73 |
-
"
|
74 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
]
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
"claude-3.5-sonnet": "claude-sonnet-3.5",
|
80 |
-
"flux": "Image Generation",
|
81 |
-
}
|
82 |
-
|
83 |
-
agentMode = {
|
84 |
'flux': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "flux"},
|
|
|
|
|
85 |
}
|
86 |
|
87 |
-
|
88 |
"blackboxai": {},
|
89 |
"gemini-1.5-flash": {'mode': True, 'id': 'Gemini'},
|
90 |
"llama-3.1-8b": {'mode': True, 'id': "llama-3.1-8b"},
|
@@ -95,7 +94,7 @@ trendingAgentMode = {
|
|
95 |
'JavaAgent': {'mode': True, 'id': "Java Agent"},
|
96 |
'JavaScriptAgent': {'mode': True, 'id': "JavaScript Agent"},
|
97 |
'HTMLAgent': {'mode': True, 'id': "HTML Agent"},
|
98 |
-
'GoogleCloudAgent
|
99 |
'AndroidDeveloper': {'mode': True, 'id': "Android Developer"},
|
100 |
'SwiftDeveloper': {'mode': True, 'id': "Swift Developer"},
|
101 |
'Next.jsAgent': {'mode': True, 'id': "Next.js Agent"},
|
@@ -122,4 +121,4 @@ trendingAgentMode = {
|
|
122 |
'FlutterAgent': {'mode': True, 'id': "FlutterAgent"},
|
123 |
'YoutubeAgent': {'mode': True, 'id': "YoutubeAgent"},
|
124 |
'builderAgent': {'mode': True, 'id': "builderAgent"},
|
125 |
-
}
|
|
|
23 |
'Chrome/130.0.0.0 Safari/537.36',
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
26 |
APP_SECRET = os.getenv("APP_SECRET")
|
27 |
|
28 |
+
# Allowed Models Configuration
|
29 |
+
ALLOWED_MODELS = [
|
30 |
+
{"id": "blackboxai", "name": "blackboxai"},
|
31 |
+
{"id": "blackboxai-pro", "name": "blackboxai-pro"},
|
32 |
+
{"id": "flux", "name": "flux"},
|
33 |
+
{"id": "llama-3.1-8b", "name": "llama-3.1-8b"},
|
34 |
+
{"id": "llama-3.1-70b", "name": "llama-3.1-70b"},
|
35 |
+
{"id": "llama-3.1-405b", "name": "llama-3.1-405"},
|
36 |
+
{"id": "gpt-4o", "name": "gpt-4o"},
|
37 |
+
{"id": "gemini-pro", "name": "gemini-pro"},
|
38 |
+
{"id": "gemini-1.5-flash", "name": "gemini-1.5-flash"},
|
39 |
+
{"id": "claude-sonnet-3.5", "name": "claude-sonnet-3.5"},
|
40 |
+
{"id": "PythonAgent", "name": "PythonAgent"},
|
41 |
+
{"id": "JavaAgent", "name": "JavaAgent"},
|
42 |
+
{"id": "JavaScriptAgent", "name": "JavaScriptAgent"},
|
43 |
+
{"id": "HTMLAgent", "name": "HTMLAgent"},
|
44 |
+
{"id": "GoogleCloudAgent", "name": "GoogleCloudAgent"},
|
45 |
+
{"id": "AndroidDeveloper", "name": "AndroidDeveloper"},
|
46 |
+
{"id": "SwiftDeveloper", "name": "SwiftDeveloper"},
|
47 |
+
{"id": "Next.jsAgent", "name": "Next.jsAgent"},
|
48 |
+
{"id": "MongoDBAgent", "name": "MongoDBAgent"},
|
49 |
+
{"id": "PyTorchAgent", "name": "PyTorchAgent"},
|
50 |
+
{"id": "ReactAgent", "name": "ReactAgent"},
|
51 |
+
{"id": "XcodeAgent", "name": "XcodeAgent"},
|
52 |
+
{"id": "AngularJSAgent", "name": "AngularJSAgent"},
|
53 |
+
{"id": "HerokuAgent", "name": "HerokuAgent"},
|
54 |
+
{"id": "GodotAgent", "name": "GodotAgent"},
|
55 |
+
{"id": "GoAgent", "name": "GoAgent"},
|
56 |
+
{"id": "GitlabAgent", "name": "GitlabAgent"},
|
57 |
+
{"id": "GitAgent", "name": "GitAgent"},
|
58 |
+
{"id": "RepoMap", "name": "RepoMap"},
|
59 |
+
{"id": "gemini-1.5-pro-latest", "name": "gemini-pro"},
|
60 |
+
{"id": "gemini-1.5-pro", "name": "gemini-1.5-pro"},
|
61 |
+
{"id": "claude-3-5-sonnet-20240620", "name": "claude-sonnet-3.5"},
|
62 |
+
{"id": "claude-3-5-sonnet", "name": "claude-sonnet-3.5"},
|
63 |
+
{"id": "Niansuh", "name": "Niansuh"},
|
64 |
+
{"id": "o1-preview", "name": "o1-preview"},
|
65 |
+
{"id": "FlaskAgent", "name": "FlaskAgent"},
|
66 |
+
{"id": "FirebaseAgent", "name": "FirebaseAgent"},
|
67 |
+
{"id": "FastAPIAgent", "name": "FastAPIAgent"},
|
68 |
+
{"id": "ErlangAgent", "name": "ErlangAgent"},
|
69 |
+
{"id": "ElectronAgent", "name": "ElectronAgent"},
|
70 |
+
{"id": "DockerAgent", "name": "DockerAgent"},
|
71 |
+
{"id": "DigitalOceanAgent", "name": "DigitalOceanAgent"},
|
72 |
+
{"id": "BitbucketAgent", "name": "BitbucketAgent"},
|
73 |
+
{"id": "AzureAgent", "name": "AzureAgent"},
|
74 |
+
{"id": "FlutterAgent", "name": "FlutterAgent"},
|
75 |
+
{"id": "YoutubeAgent", "name": "YoutubeAgent"},
|
76 |
+
{"id": "builderAgent", "name": "builderAgent"},
|
77 |
]
|
78 |
|
79 |
+
# Agent modes
|
80 |
+
AGENT_MODE = {
|
|
|
|
|
|
|
|
|
|
|
81 |
'flux': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "flux"},
|
82 |
+
'Niansuh': {'mode': True, 'id': "NiansuhAIk1HgESy", 'name': "Niansuh"},
|
83 |
+
'o1-preview': {'mode': True, 'id': "o1Dst8La8", 'name': "o1-preview"},
|
84 |
}
|
85 |
|
86 |
+
TRENDING_AGENT_MODE = {
|
87 |
"blackboxai": {},
|
88 |
"gemini-1.5-flash": {'mode': True, 'id': 'Gemini'},
|
89 |
"llama-3.1-8b": {'mode': True, 'id': "llama-3.1-8b"},
|
|
|
94 |
'JavaAgent': {'mode': True, 'id': "Java Agent"},
|
95 |
'JavaScriptAgent': {'mode': True, 'id': "JavaScript Agent"},
|
96 |
'HTMLAgent': {'mode': True, 'id': "HTML Agent"},
|
97 |
+
'GoogleCloudAgent': {'mode': True, 'id': "Google Cloud Agent"},
|
98 |
'AndroidDeveloper': {'mode': True, 'id': "Android Developer"},
|
99 |
'SwiftDeveloper': {'mode': True, 'id': "Swift Developer"},
|
100 |
'Next.jsAgent': {'mode': True, 'id': "Next.js Agent"},
|
|
|
121 |
'FlutterAgent': {'mode': True, 'id': "FlutterAgent"},
|
122 |
'YoutubeAgent': {'mode': True, 'id': "YoutubeAgent"},
|
123 |
'builderAgent': {'mode': True, 'id': "builderAgent"},
|
124 |
+
}
|