Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
|
@@ -310,7 +310,7 @@ app.post('/process', async (req, res) => {
|
|
| 310 |
|
| 311 |
if (flags.thrustComplete && task_type === 'log_ingestion') {
|
| 312 |
const escalationPrompt = "The previous thrust is complete based on logs. Generate the next Thrust immediately to keep momentum.";
|
| 313 |
-
const smartResult = await callAI(history, escalationPrompt, context,[], prompts.director_system_prompt, projectContext, SMART_MODEL_ID);
|
| 314 |
aiResult.text += `\n\n[DIRECTOR INTERVENTION]:\n${smartResult.text}`;
|
| 315 |
const smartCmds = extractCommands(smartResult.text);
|
| 316 |
await executeCommands(userId, projectId, smartCmds);
|
|
|
|
| 310 |
|
| 311 |
if (flags.thrustComplete && task_type === 'log_ingestion') {
|
| 312 |
const escalationPrompt = "The previous thrust is complete based on logs. Generate the next Thrust immediately to keep momentum.";
|
| 313 |
+
const smartResult = await callAI(history, escalationPrompt, context,[], prompts.director_system_prompt, projectContext, MIDDLE_MODEL_ID); // SMART_MODEL_ID);
|
| 314 |
aiResult.text += `\n\n[DIRECTOR INTERVENTION]:\n${smartResult.text}`;
|
| 315 |
const smartCmds = extractCommands(smartResult.text);
|
| 316 |
await executeCommands(userId, projectId, smartCmds);
|