Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]一长串代码会被检测到含有敏感词 #56

Closed
eddsi opened this issue May 2, 2024 · 1 comment
Closed

[Bug]一长串代码会被检测到含有敏感词 #56

eddsi opened this issue May 2, 2024 · 1 comment

Comments

@eddsi
Copy link

eddsi commented May 2, 2024

if !hit {
CollectQuota(conn.GetCtx(), user, buffer, plan, err)
}

if buffer.IsEmpty() {
conn.Send(globals.ChatSegmentResponse{
Message: defaultMessage,
End: true,
})
return defaultMessage
}

conn.Send(globals.ChatSegmentResponse{
End: true,
Quota: buffer.GetQuota(),
Plan: plan,
})

return buffer.ReadWithDefault(defaultMessage)
上述go代码会被检测出敏感词,但是我仔细检查了一下,并不包含dict_en中的英文。

@houbb
Copy link
Owner

houbb commented Jun 1, 2024

默认被识别为 url 了。

v0.16.2 默认关闭了 url 检测,以前的版本可以配置指定。

@houbb houbb closed this as completed Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants