From 6211fa5a85b409ffcda597ee22a659eedbbc0e7b Mon Sep 17 00:00:00 2001 From: mic Date: Sun, 7 Dec 2025 18:04:03 +0100 Subject: [PATCH] Added anthropic_system_prompt option in the options page. See #549 --- _locales/en/messages.json | 8 ++++++++ options/mzta-options-default.js | 1 + pages/_lib/connection-ui.js | 13 +++++++++++++ 3 files changed, 22 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 51583825..77fb453c 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1688,5 +1688,13 @@ "DeselectAll": { "message": "Deselect All", "description": "" + }, + "Anthropic_System_Prompt": { + "message": "System Prompt", + "description": "" + }, + "Anthropic_System_Prompt_Info": { + "message": "You can improve Claude performance by using a System Prompt to give it a role. This technique, known as role prompting, is the most powerful way to use system prompts with Claude. The right role can turn Claude from a general assistant into your virtual domain expert.", + "description": "" } } diff --git a/options/mzta-options-default.js b/options/mzta-options-default.js index 6efc2cfa..6405c1a0 100644 --- a/options/mzta-options-default.js +++ b/options/mzta-options-default.js @@ -50,6 +50,7 @@ export const prefs_default = { anthropic_model: '', anthropic_version: '2023-06-01', anthropic_max_tokens: 4096, + anthropic_system_prompt: '', dynamic_menu_force_enter: false, dynamic_menu_order_alphabet: true, placeholders_use_default_value: false, diff --git a/pages/_lib/connection-ui.js b/pages/_lib/connection-ui.js index 0042ad5c..22f24500 100644 --- a/pages/_lib/connection-ui.js +++ b/pages/_lib/connection-ui.js @@ -397,6 +397,19 @@ export async function injectConnectionUI({ + + + + + + + +