enzostvs HF Staff commited on
Commit
3baaafe
·
1 Parent(s): 63b29b5

remove templates

Browse files
Files changed (1) hide show
  1. 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
- // Calculate dynamic max_tokens based on provider and input size
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);