Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
|
@@ -13,6 +13,7 @@ const CRON_REGISTRY_URL = process.env.CRON_REGISTRY_URL || "http://localhost:786
|
|
| 13 |
const CRON_SECRET = process.env.CRON_SECRET || "default_secret";
|
| 14 |
|
| 15 |
const SMART_MODEL_ID = "claude";
|
|
|
|
| 16 |
const FAST_MODEL_ID = "maverick"; //"gpt-5-mini";
|
| 17 |
|
| 18 |
// The Utility Server that handles the Email Dispatching
|
|
@@ -292,7 +293,7 @@ app.post('/process', async (req, res) => {
|
|
| 292 |
const { userId, projectId, prompt, context, images, task_type = 'chat' } = req.body;
|
| 293 |
if (task_type === 'chat') await StateManager.setFrozen(projectId, false);
|
| 294 |
|
| 295 |
-
let selectedModel = (task_type === 'log_ingestion') ? FAST_MODEL_ID : SMART_MODEL_ID;
|
| 296 |
let sysPrompt = (task_type === 'log_ingestion') ? prompts.log_analyst_prompt : prompts.director_system_prompt;
|
| 297 |
|
| 298 |
try {
|
|
|
|
| 13 |
const CRON_SECRET = process.env.CRON_SECRET || "default_secret";
|
| 14 |
|
| 15 |
const SMART_MODEL_ID = "claude";
|
| 16 |
+
const MIDDLE_MODEL_ID = "haiku";
|
| 17 |
const FAST_MODEL_ID = "maverick"; //"gpt-5-mini";
|
| 18 |
|
| 19 |
// The Utility Server that handles the Email Dispatching
|
|
|
|
| 293 |
const { userId, projectId, prompt, context, images, task_type = 'chat' } = req.body;
|
| 294 |
if (task_type === 'chat') await StateManager.setFrozen(projectId, false);
|
| 295 |
|
| 296 |
+
let selectedModel = (task_type === 'log_ingestion') ? FAST_MODEL_ID : MIDDLE_MODEL_ID; // SMART_MODEL_ID;
|
| 297 |
let sysPrompt = (task_type === 'log_ingestion') ? prompts.log_analyst_prompt : prompts.director_system_prompt;
|
| 298 |
|
| 299 |
try {
|