新增 MiniMax H3 Highspeed/Lite 与 Seedance 2.5 Flash,兼容视频参数和旧工作流
This commit is contained in:
@@ -94,6 +94,7 @@ const SEEDANCE_AUTO_PASS_MODELS = new Set([
|
||||
"seedance 2.0 fast",
|
||||
"seedance 2.0 mini",
|
||||
"seedance 2.5",
|
||||
"seedance 2.5 flash",
|
||||
]);
|
||||
const SEEDANCE_AUTO_PASS_ROUTES = new Set(["国内", "海外", "海外HC", "海外破限高并发", "海外破限", "海外破限标准", "海外标准"]);
|
||||
const SEEDANCE_AUTO_PASS_NODE_TYPES = new Set(["SeedanceAutoPass", "SeedanceAutoPassBatch"]);
|
||||
@@ -136,7 +137,7 @@ const GLOBAL_ROUTE_NODE_TYPES = new Set([
|
||||
"SeedanceAutoPassBatch",
|
||||
"UniversalLLMChat",
|
||||
]);
|
||||
const MINIMAX_H3_MODELS = new Set(["MiniMax-H3", "MiniMax-H3-MAX"]);
|
||||
const MINIMAX_H3_MODELS = new Set(["MiniMax-H3", "MiniMax-H3-MAX", "MiniMax-H3-Highspeed", "MiniMax-H3-Lite"]);
|
||||
const OMNI_FLASH_MODELS = new Set(["omni_flash_8s", "omni_flash_10s"]);
|
||||
const GROK_VIDEO_MODES = new Set(["文生视频", "图生视频", "参考生视频"]);
|
||||
const GROK_VIDEO_EDIT_MODES = new Set(["编辑视频", "续写视频"]);
|
||||
@@ -353,8 +354,10 @@ const MIGRATIONS = [
|
||||
type: "MiniMaxH3Video",
|
||||
note: "为 MiniMax H3 节点补齐模型参数",
|
||||
when: (wv) => wv.length >= 4
|
||||
&& !MINIMAX_H3_MODELS.has(wv[1])
|
||||
&& !MINIMAX_H3_MODELS.has(wv[wv.length - 1])
|
||||
&& !MINIMAX_H3_MODELS.has(wv[wv.length - 2]),
|
||||
&& !MINIMAX_H3_MODELS.has(wv[wv.length - 2])
|
||||
&& !MINIMAX_H3_MODELS.has(wv[wv.length - 3]),
|
||||
apply: (wv) => wv.push("MiniMax-H3"),
|
||||
},
|
||||
{
|
||||
@@ -363,6 +366,23 @@ const MIGRATIONS = [
|
||||
when: (wv) => wv.length >= 5 && MINIMAX_H3_MODELS.has(wv[wv.length - 1]),
|
||||
apply: (wv) => wv.push(0),
|
||||
},
|
||||
{
|
||||
type: "MiniMaxH3Video",
|
||||
note: "将 MiniMax H3 模型移至生成模式上方",
|
||||
when: (wv) => !MINIMAX_H3_MODELS.has(wv[1])
|
||||
&& [wv.length - 2, wv.length - 3].some((index) => MINIMAX_H3_MODELS.has(wv[index])),
|
||||
apply: (wv) => {
|
||||
const index = [wv.length - 2, wv.length - 3].find((index) => MINIMAX_H3_MODELS.has(wv[index]));
|
||||
const [model] = wv.splice(index, 1);
|
||||
wv.splice(1, 0, model);
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "MiniMaxH3Video",
|
||||
note: "将 MiniMax H3 参考素材模式更名为多模态生视频",
|
||||
when: (wv) => wv[2] === "参考素材生视频",
|
||||
apply: (wv) => { wv[2] = "多模态生视频"; },
|
||||
},
|
||||
{
|
||||
type: "O1keyImageGenerator",
|
||||
note: "移除统一图片生成节点已停用的色彩纠正参数",
|
||||
|
||||
Reference in New Issue
Block a user