Skip to content

Commit e8305c5

Browse files
committed
optimize(thesaurus): cnfd. calc.
1 parent 71d029f commit e8305c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/thesaurus/chat.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ func init() {
8888
r, err := kimoi.Chat(msg)
8989
if err == nil {
9090
c := 0
91-
for r.Confidence < 0.5 && c < 3 {
91+
for r.Confidence < 0.2 && c < 3 {
9292
r, err = kimoi.Chat(msg)
9393
if err != nil {
9494
return
9595
}
9696
c++
9797
}
98-
if r.Confidence < 0.5 {
98+
if r.Confidence < 0.2 {
9999
return
100100
}
101101
ctx.Block()

0 commit comments

Comments
 (0)