优化脚本

This commit is contained in:
Azmat@qq.com
2026-08-31 11:57:34 +08:00
parent f59e9d0418
commit cbd4f362d9
20 changed files with 261 additions and 74 deletions
+3 -2
View File
@@ -620,8 +620,9 @@ def start_pending_free_video(task: AITask) -> AITask:
except (TypeError, ValueError):
seed = -1
references = list(payload.get("references") or [])
if feature == "video_replace":
# 复刻:用户原片只用来提炼,绝不能进 Seedance,否则真人素材直接被火山拒。
if feature == "video_replace" and payload.get("replace_mode") == "product":
# 商品复刻:原片只用来提炼,绝不能进 Seedance,否则真人素材直接被火山拒。
# 角色复刻走另一条已入火山素材库的 video-reference 链路,必须保留视频。
references = [item for item in references if (item or {}).get("type") != "video"]
try:
built = build_content_items(