From e8305c588696e9330ce4ffb36b972edffd685d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 17 Feb 2025 23:45:16 +0900 Subject: [PATCH] optimize(thesaurus): cnfd. calc. --- plugin/thesaurus/chat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/thesaurus/chat.go b/plugin/thesaurus/chat.go index ed95bb9b..47fc4d0c 100644 --- a/plugin/thesaurus/chat.go +++ b/plugin/thesaurus/chat.go @@ -88,14 +88,14 @@ func init() { r, err := kimoi.Chat(msg) if err == nil { c := 0 - for r.Confidence < 0.5 && c < 3 { + for r.Confidence < 0.2 && c < 3 { r, err = kimoi.Chat(msg) if err != nil { return } c++ } - if r.Confidence < 0.5 { + if r.Confidence < 0.2 { return } ctx.Block()