From 09c82064e127f97305a63eb5a3593fb6da09978c Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Mon, 2 Mar 2026 15:30:28 -0800 Subject: [PATCH] Only enable detailed with native prompt parsing --- modules/ui_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_common.py b/modules/ui_common.py index 99a8a2d22..64fce5c3e 100644 --- a/modules/ui_common.py +++ b/modules/ui_common.py @@ -442,7 +442,7 @@ def update_token_counter(text: str): prompt_list = [prompt] ids = [] if shared.sd_loaded and hasattr(shared.sd_model, 'tokenizer') and shared.sd_model.tokenizer is not None: - if shared.opts.prompt_detailed_tokens: + if shared.opts.prompt_detailed_tokens and shared.opts.prompt_attention == 'native': p_split = re.compile(r'\bBREAK\b|\n' if shared.opts.sd_textencder_linebreak else r'\bBREAK\b') prompt_list = re.split(p_split, prompt)