Fix prompt normalization: accept lowercase picture1..4 (was duplicating role clauses)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user