mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-07 08:19:52 +00:00
fix: veto matches shorthand 'u' and 'r' for you/are
This commit is contained in:
parent
979493eb00
commit
8b360f5bc8
|
|
@ -94,9 +94,9 @@ _CATEGORY_REGEXES = [re.compile(p, re.IGNORECASE) for p in _CATEGORY_PATTERNS]
|
|||
# ---------------------------------------------------------------------------
|
||||
_IDENTITY_VETO_PATTERNS = [
|
||||
# self-referential questions directed at the model
|
||||
r"\bwho\s+are\s+you\b",
|
||||
r"\bwhat\s+are\s+you\b",
|
||||
r"\bwho\s+are\s+you\s+really\b",
|
||||
r"\bwho\s+(?:r|ru|are)\s+(?:u|you)\b",
|
||||
r"\bwhat\s+(?:r|ru|are)\s+(?:u|you)\b",
|
||||
r"\bwho\s+(?:r|ru|are)\s+(?:u|you)\s+really\b",
|
||||
r"\bwhat(?:'|\s+i)s\s+your\s+name\b",
|
||||
r"\bintroduce\s+yourself\b",
|
||||
r"\btell\s+me\s+about\s+(?:yourself|you|you\s+first)\b",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user