feat(recipes): add toggle to strip <lora:> tags when copying prompt/negative_prompt

Adds a compact inline toggle in the Generation Parameters section of the
Recipe Modal that, when enabled, strips <lora:name:weight> tags and
cleans up residual punctuation before copying to clipboard. The setting
persists across sessions via localStorage.
This commit is contained in:
Will Miao
2026-05-13 11:47:02 +08:00
parent 60cfb3b8e0
commit 3bf396d003
4 changed files with 102 additions and 8 deletions

View File

@@ -50,6 +50,7 @@ const DEFAULT_SETTINGS_BASE = Object.freeze({
download_skip_base_models: [],
backup_auto_enabled: true,
backup_retention_count: 5,
strip_lora_on_copy: false,
});
export function createDefaultSettings() {