diff --git a/_locales/en-US/messages.json b/_locales/en-US/messages.json index 2aeebef..54882db 100644 --- a/_locales/en-US/messages.json +++ b/_locales/en-US/messages.json @@ -8,7 +8,7 @@ "options.customTemplate": { "message": "Custom template" }, "options.systemInstructions": { "message": "System instructions" }, "options.reset": { "message": "Reset to default" }, - "options.placeholders": { "message": "Placeholders: {{system}}, {{email}}, {{operator}}, {{query}}" }, + "options.placeholders": { "message": "Placeholders: {{system}}, {{email}}, {{query}}" }, "template.openai": { "message": "OpenAI / ChatML" }, "template.qwen": { "message": "Qwen" }, "template.mistral": { "message": "Mistral" }, diff --git a/modules/ExpressionSearchFilter.jsm b/modules/ExpressionSearchFilter.jsm index d2468a4..694225c 100644 --- a/modules/ExpressionSearchFilter.jsm +++ b/modules/ExpressionSearchFilter.jsm @@ -156,12 +156,11 @@ function buildSystemPrompt() { return SYSTEM_PREFIX + (gCustomSystemPrompt || DEFAULT_CUSTOM_SYSTEM_PROMPT) + SYSTEM_SUFFIX; } -function buildPrompt(body, criterion, opName) { +function buildPrompt(body, criterion) { console.log(`[ai-filter][ExpressionSearchFilter] Building prompt with criterion: "${criterion}"`); const data = { system: buildSystemPrompt(), email: body, - operator: opName, query: criterion, }; let template = gTemplateText || loadTemplate(gTemplateName); @@ -189,7 +188,7 @@ class ClassificationTerm extends CustomerTermBase { let body = getPlainText(msgHdr); let payload = JSON.stringify({ - prompt: buildPrompt(body, value, opName), + prompt: buildPrompt(body, value), max_tokens: 4096, temperature: 0.6, top_p: 0.95, diff --git a/options/options.html b/options/options.html index 992fc1d..b0c5a78 100644 --- a/options/options.html +++ b/options/options.html @@ -132,7 +132,7 @@