Spaces:
Running
Running
remove templates
Browse files- app/api/ask/route.ts +1 -7
app/api/ask/route.ts
CHANGED
|
@@ -126,13 +126,7 @@ export async function POST(request: NextRequest) {
|
|
| 126 |
try {
|
| 127 |
const client = new InferenceClient(token);
|
| 128 |
|
| 129 |
-
|
| 130 |
-
const systemPrompt = INITIAL_SYSTEM_PROMPT + (enhancedSettings.isActive ? `
|
| 131 |
-
Here are some examples of designs that you can inspire from:
|
| 132 |
-
${templates.map((template) => `- ${template}`).join("\n")}
|
| 133 |
-
IMPORTANT: Use the templates as inspiration, but do not copy them exactly.
|
| 134 |
-
Try to create a unique design, based on the templates, but not exactly like them, mostly depending on the user's prompt. These are just examples, do not copy them exactly.
|
| 135 |
-
` : "");
|
| 136 |
|
| 137 |
const userPrompt = rewrittenPrompt;
|
| 138 |
const estimatedInputTokens = estimateInputTokens(systemPrompt, userPrompt);
|
|
|
|
| 126 |
try {
|
| 127 |
const client = new InferenceClient(token);
|
| 128 |
|
| 129 |
+
const systemPrompt = INITIAL_SYSTEM_PROMPT;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
|
| 131 |
const userPrompt = rewrittenPrompt;
|
| 132 |
const estimatedInputTokens = estimateInputTokens(systemPrompt, userPrompt);
|