From ba54bd8bb17903141b21910b01d2b9d59d7762fc Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Sun, 2 Feb 2025 01:48:40 +0000 Subject: [PATCH] fix: confidence threshold from config self.config.get("min_intent_confidence", 0.6) --- ovos_persona/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_persona/__init__.py b/ovos_persona/__init__.py index fd4f380..4a4e175 100644 --- a/ovos_persona/__init__.py +++ b/ovos_persona/__init__.py @@ -282,7 +282,7 @@ def match_high(self, utterances: List[str], lang: Optional[str] = None, name = match.name if IS_PADATIOUS else match.get("name") conf = match.conf if IS_PADATIOUS else match.get("conf", 0) - if conf < 0.7: + if conf < self.config.get("min_intent_confidence", 0.6): LOG.debug(f"Ignoring low confidence persona intent: {match}") name = None if name: