From 452ba3ad05947d05e86fb143b4a348af14c0e98f Mon Sep 17 00:00:00 2001 From: GinHa <15201596918@163.com> Date: Thu, 9 Jul 2026 17:20:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E9=95=9C=E5=A4=8D=E5=88=BB=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E7=A7=92=E6=95=B0=E6=9B=B4=E6=96=B0=E4=B8=BA1?= =?UTF-8?q?=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video-gen-api/app/config.py | 2 +- video-gen-api/app/services/module_async_recovery_service.py | 2 +- video-gen-api/app/services/shot_video_analysis_service.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/video-gen-api/app/config.py b/video-gen-api/app/config.py index 52d9779b..cf044acf 100644 --- a/video-gen-api/app/config.py +++ b/video-gen-api/app/config.py @@ -228,7 +228,7 @@ class Settings(BaseSettings): # 拆镜复刻配置。 # 原始上传视频和拆镜片段都属于 uploads 素材域;只有 generate 生成结果走 token 验签。 - SHOT_ANALYSIS_TIMEOUT_SECONDS: int = 600 + SHOT_ANALYSIS_TIMEOUT_SECONDS: int = 3600 SHOT_ANALYSIS_TEMPERATURE: float = 0.1 SHOT_ANALYSIS_MAX_TOKENS: int = 5000 SHOT_ANALYSIS_VIDEO_FPS: float = 1.0 diff --git a/video-gen-api/app/services/module_async_recovery_service.py b/video-gen-api/app/services/module_async_recovery_service.py index 2eda39cb..a78dae49 100644 --- a/video-gen-api/app/services/module_async_recovery_service.py +++ b/video-gen-api/app/services/module_async_recovery_service.py @@ -99,7 +99,7 @@ def _lease_seconds() -> int: def _shot_analysis_lease_seconds() -> int: - timeout = max(1, int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 600) or 600)) + timeout = max(1, int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 3600) or 3600)) return max(_lease_seconds(), timeout + 120) diff --git a/video-gen-api/app/services/shot_video_analysis_service.py b/video-gen-api/app/services/shot_video_analysis_service.py index 10500e55..10d14a6f 100644 --- a/video-gen-api/app/services/shot_video_analysis_service.py +++ b/video-gen-api/app/services/shot_video_analysis_service.py @@ -34,7 +34,7 @@ class ShotVideoAnalysisResult: def _timeout_seconds() -> int: - return int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 180) or 180) + return int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 3600) or 3600) def _video_fps() -> float: