From 3bed88a31d87f12f8fd6cc86da19d8bf3b539202 Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Sun, 2 Nov 2025 17:38:37 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E8=A1=A5=E5=85=85=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E7=9A=84=20=E9=87=91=E5=8F=A5=E5=88=86=E6=9E=90=20?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E4=B8=8E=E5=85=B3=E9=97=AD=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _conf_schema.json | 6 ++++++ src/core/config.py | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/_conf_schema.json b/_conf_schema.json index 93c5935..b659333 100644 --- a/_conf_schema.json +++ b/_conf_schema.json @@ -69,6 +69,12 @@ "default": true, "hint": "是否使用LLM进行用户称号分析" }, + "golden_quote_analysis_enabled": { + "type": "bool", + "description": "启用金句分析", + "default": true, + "hint": "是否使用LLM进行金句分析" + }, "max_topics": { "type": "int", "description": "最大话题数量", diff --git a/src/core/config.py b/src/core/config.py index 8cc2eda..37d5d55 100644 --- a/src/core/config.py +++ b/src/core/config.py @@ -55,6 +55,10 @@ class ConfigManager: """获取是否启用用户称号分析""" return self.config.get("user_title_analysis_enabled", True) + def get_golden_quote_analysis_enabled(self) -> bool: + """获取是否启用金句分析""" + return self.config.get("golden_quote_analysis_enabled", True) + def get_max_topics(self) -> int: """获取最大话题数量""" return self.config.get("max_topics", 5) @@ -151,6 +155,11 @@ class ConfigManager: self.config["user_title_analysis_enabled"] = enabled self.config.save_config() + def set_golden_quote_analysis_enabled(self, enabled: bool): + """设置是否启用金句分析""" + self.config["golden_quote_analysis_enabled"] = enabled + self.config.save_config() + def set_max_topics(self, count: int): """设置最大话题数量""" self.config["max_topics"] = count