Publish Seedance 2.5 draft mode and video updates

- Add the 样片模式 flow: 480p draft generation, a linkable draft task ID, and pre-flight verification before the 1080p final request.

- Allow reference images and audio in video edit/extend requests, matching the provider's 2.5 contract.

- Move 主模型 and 样片模式 ahead of 生成模式, default 主模型 to seedance 2.5, and migrate saved widget values.

- Refresh the video panel, asset API response logs, and LLM node handling; cover the new behavior with offline tests.
This commit is contained in:
Jony
2026-10-21 20:13:55 +08:00
parent 532d4a9541
commit ff1cf830fa
27 changed files with 1810 additions and 341 deletions
+3 -3
View File
@@ -1227,7 +1227,7 @@ try:
return web.json_response({"error": "未配置 API Key"}, status=401)
base_url = NETWORK_ROUTES[get_network_route()]
model = data.get("model", "gpt-6-sol")
model = data.get("model", "claude-opus-5-5")
messages = data.get("messages", [])
if not isinstance(messages, list) or not messages:
return web.json_response({"error": "缺少对话内容"}, status=400)
@@ -1246,12 +1246,12 @@ try:
if reasoning not in ("low", "medium", "high"):
reasoning = "high"
body = {"model": model, "messages": messages, "stream": True}
if model == "claude-fable-5":
if model in ("claude-fable-5", "claude-opus-5-5"):
budgets = {"low": 2048, "medium": 8192, "high": 16384}
budget = budgets[reasoning]
body["thinking"] = {"type": "enabled", "budget_tokens": budget}
body["max_tokens"] = budget + 8192
elif model in ("gpt-5.5", "gpt-5.6-sol", "gpt-6-astra", "gpt-6-sol", "gemini-3.1-pro-preview"):
elif model in ("gpt-5.5", "gpt-5.6-sol", "gpt-6-astra", "gpt-6-sol", "gpt-6.1-sol", "gemini-3.1-pro-preview", "gemini-4-argon"):
body["reasoning_effort"] = reasoning
search_trace = None