From abe3be2ffacd1270a994ae5cf7dc8427af27e562 Mon Sep 17 00:00:00 2001 From: OoO Date: Tue, 19 May 2026 09:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=20PPT=20=E8=A6=96=E8=A6=BA?= =?UTF-8?q?=20QA=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 +- config.py | 2 +- services/ppt_vision_service.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 2adcc83..6af6881 100644 --- a/.env.example +++ b/.env.example @@ -314,7 +314,7 @@ RAG_EMBED_DIM=1024 RAG_EMBED_NORMALIZE=true PPT_VISION_ENABLED=true PPT_VISION_MODEL=minicpm-v:latest -PPT_VISION_TIMEOUT=60 +PPT_VISION_TIMEOUT=120 PPT_AUTO_GENERATION_ENABLED=true PPT_AUTO_REPORT_TYPES=all PPT_AUTO_DEFAULT_CATEGORY=美妝保養 diff --git a/config.py b/config.py index be753ab..edf6dc8 100644 --- a/config.py +++ b/config.py @@ -320,7 +320,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.230" +SYSTEM_VERSION = "V10.231" LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log') public_url = PUBLIC_URL # 用於模板顯示 diff --git a/services/ppt_vision_service.py b/services/ppt_vision_service.py index 6653fa2..a3a46f3 100644 --- a/services/ppt_vision_service.py +++ b/services/ppt_vision_service.py @@ -35,7 +35,7 @@ logger = logging.getLogger(__name__) # Feature flag + 配置 # ───────────────────────────────────────────────────────────────────────────── PPT_VISION_MODEL = os.getenv('PPT_VISION_MODEL', 'minicpm-v:latest') -PPT_VISION_TIMEOUT = int(os.getenv('PPT_VISION_TIMEOUT', '45')) +PPT_VISION_TIMEOUT = int(os.getenv('PPT_VISION_TIMEOUT', '120')) PPT_VISION_IMAGE_MAX_EDGE = int(os.getenv('PPT_VISION_IMAGE_MAX_EDGE', '1280')) PPT_VISION_IMAGE_QUALITY = int(os.getenv('PPT_VISION_IMAGE_QUALITY', '82')) _AUDIT_LOCK = threading.Lock()