From c73be0745ec1bcf24986a4278f0e2faaf3fe007b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Sun, 16 Feb 2025 14:13:59 +0800 Subject: [PATCH] 'commit' --- AI/T3_TextSummarize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AI/T3_TextSummarize.py b/AI/T3_TextSummarize.py index 1be87105..0a07134a 100644 --- a/AI/T3_TextSummarize.py +++ b/AI/T3_TextSummarize.py @@ -13,9 +13,9 @@ class ContentAnalyzer: self, api_key: str = "sk-01d13a39e09844038322108ecdbd1bbc", base_url: str = "https://dashscope.aliyuncs.com/compatible-mode/v1", - model: str = "deepseek-v3", + model: str = "deepseek-r1", max_retries: int = 10, - initial_timeout: int = 120 # 初始超时改为120秒 + initial_timeout: int = 300 # 初始超时改为300秒 ): self._show_progress("🔧", "初始化分析器...", level=0) self.client = OpenAI(api_key=api_key, base_url=base_url) @@ -140,7 +140,7 @@ def main(): print(" 🚀 长春云校视频课程智能打标记系统 ".center(50, "✨")) print("=" * 50) - analyzer = ContentAnalyzer(initial_timeout=120) # 显式设置初始超时 + analyzer = ContentAnalyzer(initial_timeout=300) # 显式设置初始超时 input_file = Path(r"D:\dsWork\QingLong\AI\音频文本.txt") output_file = Path(r"D:\dsWork\QingLong\AI\分析结果.txt")