Fix prompt normalization: accept lowercase picture1..4 (was duplicating role clauses)

This commit is contained in:
KonokoAz
2026-07-14 19:47:05 -06:00
parent e89068781b
commit bbbf38ca3a
+1 -1
View File
@@ -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