Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -143,7 +143,7 @@ const flattenHistory = (history, currentInput, systemPrompt, limit = 10) => {
|
|
| 143 |
};
|
| 144 |
|
| 145 |
const callAI = async (history, input, contextData) => {
|
| 146 |
-
const systemPrompt = prompts.director_system_prompt || "You are
|
| 147 |
|
| 148 |
const enrichedInput = `[CONTEXT]:\n${JSON.stringify(contextData)}\n\n[INPUT]: ${input}`;
|
| 149 |
const prompt = flattenHistory(history, enrichedInput, systemPrompt, 10);
|
|
|
|
| 143 |
};
|
| 144 |
|
| 145 |
const callAI = async (history, input, contextData) => {
|
| 146 |
+
const systemPrompt = prompts.director_system_prompt || "You are Thrust. Analyze context and give actionable orders.";
|
| 147 |
|
| 148 |
const enrichedInput = `[CONTEXT]:\n${JSON.stringify(contextData)}\n\n[INPUT]: ${input}`;
|
| 149 |
const prompt = flattenHistory(history, enrichedInput, systemPrompt, 10);
|