From bbbf38ca3a145688fc3783b968b0037c077a66d3 Mon Sep 17 00:00:00 2001 From: KonokoAz Date: Tue, 14 Jul 2026 19:47:05 -0600 Subject: [PATCH] Fix prompt normalization: accept lowercase picture1..4 (was duplicating role clauses) --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 18d11f6..08dc625 100644 --- a/__init__.py +++ b/__init__.py @@ -86,7 +86,7 @@ EDIT_TEMPLATE = ( ) # "image1", "image 2", "img3", "imagen 1" -> "Picture N" (what the encoder sees) -_IMG_WORD = re.compile(r"\b(?:image|img|imagen)[ _]?([1-4])\b", re.IGNORECASE) +_IMG_WORD = re.compile(r"\b(?:image|img|imagen|picture)[ _]?([1-4])\b", re.IGNORECASE) # Auto-added when the prompt doesn't mention a connected image. Mirrors the