From 687645fc9e6bfb007b9eb3188b66a4d4a9640e5d Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Thu, 11 Sep 2025 22:22:14 +0800 Subject: [PATCH] =?UTF-8?q?[style]=20=E4=BB=A3=E7=A0=81=E6=95=B4=E6=B4=81?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/analysis/llm_analyzer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/analysis/llm_analyzer.py b/src/analysis/llm_analyzer.py index 3eff7f4..aa64079 100644 --- a/src/analysis/llm_analyzer.py +++ b/src/analysis/llm_analyzer.py @@ -26,9 +26,9 @@ class LLMAnalyzer: backoff = self.config_manager.get_llm_backoff() # 获取自定义服务商参数 - custom_api_key = getattr(self.config_manager, 'get_custom_api_key', lambda: None)() - custom_api_base = getattr(self.config_manager, 'get_custom_api_base_url', lambda: None)() - custom_model = getattr(self.config_manager, 'get_custom_model_name', lambda: None)() + custom_api_key = self.config_manager.get_custom_api_key() + custom_api_base = self.config_manager.get_custom_api_base_url() + custom_model = self.config_manager.get_custom_model_name() last_exc = None for attempt in range(1, retries + 1):