From bb0986daef8db477d90c598ffefe1890715e28f7 Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Tue, 02 Jun 2026 23:40:15 +0800
Subject: [PATCH] Unified maintenance of model capabilities and provision of model lists
---
video-claw/video-claw/backend/pipelines/api_media.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/video-claw/video-claw/backend/pipelines/api_media.py b/video-claw/video-claw/backend/pipelines/api_media.py
index 80d8ec0..27d8a60 100644
--- a/video-claw/video-claw/backend/pipelines/api_media.py
+++ b/video-claw/video-claw/backend/pipelines/api_media.py
@@ -37,7 +37,7 @@
return min(max(int(duration), int(contract.get("min", duration))), int(contract.get("max", duration)))
if provider == "dashscope":
return 10 if duration >= 8 else 5
- if provider == "seedance":
+ if provider == "seedance" or "seedance" in (model or "").lower():
return min(max(duration, 5), 10)
return max(duration, 1)
--
Gitblit v1.8.0