Update api/config.py
Browse files- api/config.py +45 -63
api/config.py
CHANGED
@@ -40,60 +40,60 @@ def get_headers_chat(chat_url, next_action, next_router_state_tree):
|
|
40 |
|
41 |
APP_SECRET = os.getenv("APP_SECRET")
|
42 |
|
43 |
-
#
|
44 |
ALLOWED_MODELS = [
|
45 |
-
"blackboxai",
|
46 |
-
"blackboxai-pro",
|
47 |
-
"flux",
|
48 |
-
"llama-3.1-8b",
|
49 |
-
"llama-3.1-70b",
|
50 |
-
"llama-3.1-405b",
|
51 |
-
"gpt-4o",
|
52 |
-
"gemini-pro",
|
53 |
-
"gemini-1.5-flash",
|
54 |
-
"claude-sonnet-3.5",
|
55 |
-
"PythonAgent",
|
56 |
-
"JavaAgent",
|
57 |
-
"JavaScriptAgent",
|
58 |
-
"HTMLAgent",
|
59 |
-
"GoogleCloudAgent",
|
60 |
-
"AndroidDeveloper",
|
61 |
-
"SwiftDeveloper",
|
62 |
-
"Next.jsAgent",
|
63 |
-
"MongoDBAgent",
|
64 |
-
"PyTorchAgent",
|
65 |
-
"ReactAgent",
|
66 |
-
"XcodeAgent",
|
67 |
-
"AngularJSAgent",
|
68 |
-
"HerokuAgent",
|
69 |
-
"GodotAgent",
|
70 |
-
"GoAgent",
|
71 |
-
"GitlabAgent",
|
72 |
-
"GitAgent",
|
73 |
-
"RepoMap",
|
|
|
74 |
# Added New Agents
|
75 |
-
"FlaskAgent",
|
76 |
-
"FirebaseAgent",
|
77 |
-
"FastAPIAgent",
|
78 |
-
"ErlangAgent",
|
79 |
-
"ElectronAgent",
|
80 |
-
"DockerAgent",
|
81 |
-
"DigitalOceanAgent",
|
82 |
-
"BitbucketAgent",
|
83 |
-
"AzureAgent",
|
84 |
-
"FlutterAgent",
|
85 |
-
"YoutubeAgent",
|
86 |
-
"builderAgent",
|
87 |
]
|
88 |
|
89 |
-
#
|
90 |
AGENT_MODE = {
|
91 |
'flux': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "flux"},
|
92 |
'Niansuh': {'mode': True, 'id': "NiansuhAIk1HgESy", 'name': "Niansuh"},
|
93 |
'o1-preview': {'mode': True, 'id': "o1Dst8La8", 'name': "o1-preview"},
|
94 |
}
|
95 |
|
96 |
-
# TRENDING_AGENT_MODE Configuration
|
97 |
TRENDING_AGENT_MODE = {
|
98 |
"blackboxai": {},
|
99 |
"gemini-1.5-flash": {'mode': True, 'id': 'Gemini'},
|
@@ -101,25 +101,7 @@ TRENDING_AGENT_MODE = {
|
|
101 |
'llama-3.1-70b': {'mode': True, 'id': "llama-3.1-70b"},
|
102 |
'llama-3.1-405b': {'mode': True, 'id': "llama-3.1-405"},
|
103 |
'blackboxai-pro': {'mode': True, 'id': "BLACKBOXAI-PRO"},
|
104 |
-
|
105 |
-
'JavaAgent': {'mode': True, 'id': "Java Agent"},
|
106 |
-
'JavaScriptAgent': {'mode': True, 'id': "JavaScript Agent"},
|
107 |
-
'HTMLAgent': {'mode': True, 'id': "HTML Agent"},
|
108 |
-
'GoogleCloudAgent': {'mode': True, 'id': "Google Cloud Agent"},
|
109 |
-
'AndroidDeveloper': {'mode': True, 'id': "Android Developer"},
|
110 |
-
'SwiftDeveloper': {'mode': True, 'id': "Swift Developer"},
|
111 |
-
'Next.jsAgent': {'mode': True, 'id': "Next.js Agent"},
|
112 |
-
'MongoDBAgent': {'mode': True, 'id': "MongoDB Agent"},
|
113 |
-
'PyTorchAgent': {'mode': True, 'id': "PyTorch Agent"},
|
114 |
-
'ReactAgent': {'mode': True, 'id': "React Agent"},
|
115 |
-
'XcodeAgent': {'mode': True, 'id': "Xcode Agent"},
|
116 |
-
'AngularJSAgent': {'mode': True, 'id': "AngularJS Agent"},
|
117 |
-
'HerokuAgent': {'mode': True, 'id': "Heroku Agent"},
|
118 |
-
'GodotAgent': {'mode': True, 'id': "Godot Agent"},
|
119 |
-
'GoAgent': {'mode': True, 'id': "Go Agent"},
|
120 |
-
'GitlabAgent': {'mode': True, 'id': "Gitlab Agent"},
|
121 |
-
'GitAgent': {'mode': True, 'id': "Git Agent"},
|
122 |
-
'RepoMap': {'mode': True, 'id': "repomap"},
|
123 |
# Added New Agents
|
124 |
'FlaskAgent': {'mode': True, 'id': "FlaskAgent"},
|
125 |
'FirebaseAgent': {'mode': True, 'id': "FirebaseAgent"},
|
|
|
40 |
|
41 |
APP_SECRET = os.getenv("APP_SECRET")
|
42 |
|
43 |
+
# Allowed Models
|
44 |
ALLOWED_MODELS = [
|
45 |
+
{"id": "blackboxai", "name": "blackboxai"},
|
46 |
+
{"id": "blackboxai-pro", "name": "blackboxai-pro"},
|
47 |
+
{"id": "flux", "name": "flux"},
|
48 |
+
{"id": "llama-3.1-8b", "name": "llama-3.1-8b"},
|
49 |
+
{"id": "llama-3.1-70b", "name": "llama-3.1-70b"},
|
50 |
+
{"id": "llama-3.1-405b", "name": "llama-3.1-405"},
|
51 |
+
{"id": "gpt-4o", "name": "gpt-4o"},
|
52 |
+
{"id": "gemini-pro", "name": "gemini-pro"},
|
53 |
+
{"id": "gemini-1.5-flash", "name": "gemini-1.5-flash"},
|
54 |
+
{"id": "claude-sonnet-3.5", "name": "claude-sonnet-3.5"},
|
55 |
+
{"id": "PythonAgent", "name": "PythonAgent"},
|
56 |
+
{"id": "JavaAgent", "name": "JavaAgent"},
|
57 |
+
{"id": "JavaScriptAgent", "name": "JavaScriptAgent"},
|
58 |
+
{"id": "HTMLAgent", "name": "HTMLAgent"},
|
59 |
+
{"id": "GoogleCloudAgent", "name": "GoogleCloudAgent"},
|
60 |
+
{"id": "AndroidDeveloper", "name": "AndroidDeveloper"},
|
61 |
+
{"id": "SwiftDeveloper", "name": "SwiftDeveloper"},
|
62 |
+
{"id": "Next.jsAgent", "name": "Next.jsAgent"},
|
63 |
+
{"id": "MongoDBAgent", "name": "MongoDBAgent"},
|
64 |
+
{"id": "PyTorchAgent", "name": "PyTorchAgent"},
|
65 |
+
{"id": "ReactAgent", "name": "ReactAgent"},
|
66 |
+
{"id": "XcodeAgent", "name": "XcodeAgent"},
|
67 |
+
{"id": "AngularJSAgent", "name": "AngularJSAgent"},
|
68 |
+
{"id": "HerokuAgent", "name": "HerokuAgent"},
|
69 |
+
{"id": "GodotAgent", "name": "GodotAgent"},
|
70 |
+
{"id": "GoAgent", "name": "GoAgent"},
|
71 |
+
{"id": "GitlabAgent", "name": "GitlabAgent"},
|
72 |
+
{"id": "GitAgent", "name": "GitAgent"},
|
73 |
+
{"id": "RepoMap", "name": "RepoMap"},
|
74 |
+
|
75 |
# Added New Agents
|
76 |
+
{"id": "FlaskAgent", "name": "FlaskAgent"},
|
77 |
+
{"id": "FirebaseAgent", "name": "FirebaseAgent"},
|
78 |
+
{"id": "FastAPIAgent", "name": "FastAPIAgent"},
|
79 |
+
{"id": "ErlangAgent", "name": "ErlangAgent"},
|
80 |
+
{"id": "ElectronAgent", "name": "ElectronAgent"},
|
81 |
+
{"id": "DockerAgent", "name": "DockerAgent"},
|
82 |
+
{"id": "DigitalOceanAgent", "name": "DigitalOceanAgent"},
|
83 |
+
{"id": "BitbucketAgent", "name": "BitbucketAgent"},
|
84 |
+
{"id": "AzureAgent", "name": "AzureAgent"},
|
85 |
+
{"id": "FlutterAgent", "name": "FlutterAgent"},
|
86 |
+
{"id": "YoutubeAgent", "name": "YoutubeAgent"},
|
87 |
+
{"id": "builderAgent", "name": "builderAgent"},
|
88 |
]
|
89 |
|
90 |
+
# Agent modes
|
91 |
AGENT_MODE = {
|
92 |
'flux': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "flux"},
|
93 |
'Niansuh': {'mode': True, 'id': "NiansuhAIk1HgESy", 'name': "Niansuh"},
|
94 |
'o1-preview': {'mode': True, 'id': "o1Dst8La8", 'name': "o1-preview"},
|
95 |
}
|
96 |
|
|
|
97 |
TRENDING_AGENT_MODE = {
|
98 |
"blackboxai": {},
|
99 |
"gemini-1.5-flash": {'mode': True, 'id': 'Gemini'},
|
|
|
101 |
'llama-3.1-70b': {'mode': True, 'id': "llama-3.1-70b"},
|
102 |
'llama-3.1-405b': {'mode': True, 'id': "llama-3.1-405"},
|
103 |
'blackboxai-pro': {'mode': True, 'id': "BLACKBOXAI-PRO"},
|
104 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
# Added New Agents
|
106 |
'FlaskAgent': {'mode': True, 'id': "FlaskAgent"},
|
107 |
'FirebaseAgent': {'mode': True, 'id': "FirebaseAgent"},
|