Reject identity boilerplate over creative fallback
This commit is contained in:
@@ -517,11 +517,12 @@ func (g *gateway) handleChatMessage(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func isBoilerplateAdvisory(value string) bool {
|
||||
switch strings.ToLower(strings.TrimSpace(value)) {
|
||||
normalized := strings.ToLower(strings.TrimSpace(value))
|
||||
switch normalized {
|
||||
case "я рядом.", "я рядом", "понял.", "понял", "принял.", "принял":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
return strings.Contains(normalized, "я — домов") || strings.Contains(normalized, "я - домов") || strings.Contains(normalized, "меня зовут домов")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user