拆镜复刻超时秒数更新为1小时

This commit is contained in:
2026-07-09 17:20:32 +08:00
parent 356d4860e3
commit 452ba3ad05
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ class Settings(BaseSettings):
# 拆镜复刻配置。 # 拆镜复刻配置。
# 原始上传视频和拆镜片段都属于 uploads 素材域;只有 generate 生成结果走 token 验签。 # 原始上传视频和拆镜片段都属于 uploads 素材域;只有 generate 生成结果走 token 验签。
SHOT_ANALYSIS_TIMEOUT_SECONDS: int = 600 SHOT_ANALYSIS_TIMEOUT_SECONDS: int = 3600
SHOT_ANALYSIS_TEMPERATURE: float = 0.1 SHOT_ANALYSIS_TEMPERATURE: float = 0.1
SHOT_ANALYSIS_MAX_TOKENS: int = 5000 SHOT_ANALYSIS_MAX_TOKENS: int = 5000
SHOT_ANALYSIS_VIDEO_FPS: float = 1.0 SHOT_ANALYSIS_VIDEO_FPS: float = 1.0
@@ -99,7 +99,7 @@ def _lease_seconds() -> int:
def _shot_analysis_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) return max(_lease_seconds(), timeout + 120)
@@ -34,7 +34,7 @@ class ShotVideoAnalysisResult:
def _timeout_seconds() -> int: 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: def _video_fps() -> float: