Skip to content

Commit 4106c3e

Browse files
authored
BizyAir_VIDU_Q3_T2V_API (#196)
* fix (#194) * noInpuptcoutn (#195)
1 parent a53a9e3 commit 4106c3e

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

bizyui/js/image_upload.js

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function initializeDynamicInputs(node) {
2626
nodeIdentifier !== "BizyAir_NanoBananaPro" &&
2727
nodeIdentifier !== "BizyAir_NanoBananaProOfficial" &&
2828
nodeIdentifier !== "BizyAir_NanoBanana2" &&
29-
nodeIdentifier !== "BizyAir_Seedream5"
29+
nodeIdentifier !== "BizyAir_Seedream5" &&
30+
nodeIdentifier !== "BizyAir_VIDU_Q3_T2V_API" &&
31+
nodeIdentifier !== "BizyAir_VIDU_Q3_I2V_API"
3032
) {
3133
return;
3234
}
@@ -37,10 +39,13 @@ function initializeDynamicInputs(node) {
3739
node.inputs = [];
3840
}
3941

40-
// 先检查是否存在 inputcount widget
41-
let inputCountWidget = node.widgets?.find(
42-
(w) => w.name === "inputcount"
43-
);
42+
//VIDU 节点不需要 inputcount 和 Update inputs 按钮
43+
const isVidu = nodeIdentifier === "BizyAir_VIDU_Q3_T2V_API" || nodeIdentifier === "BizyAir_VIDU_Q3_I2V_API";
44+
if (!isVidu) {
45+
// 先检查是否存在 inputcount widget
46+
let inputCountWidget = node.widgets?.find(
47+
(w) => w.name === "inputcount"
48+
);
4449

4550
// 如果不存在,先创建 inputcount widget(在按钮之前创建,确保显示顺序)
4651
if (!inputCountWidget) {
@@ -123,12 +128,15 @@ function initializeDynamicInputs(node) {
123128
}
124129
}
125130
});
131+
}
126132
}
127133
// 添加下拉选择 widget
128134
if (
129135
nodeIdentifier === "BizyAir_NanoBananaPro" ||
130136
nodeIdentifier === "BizyAir_NanoBananaProOfficial" ||
131-
nodeIdentifier === "BizyAir_NanoBanana2"
137+
nodeIdentifier === "BizyAir_NanoBanana2" ||
138+
nodeIdentifier === "BizyAir_VIDU_Q3_T2V_API" ||
139+
nodeIdentifier === "BizyAir_VIDU_Q3_I2V_API"
132140
) {
133141
const modeWidget = node.widgets?.find(w => w.name === "mode");
134142
if (modeWidget) {
@@ -161,15 +169,19 @@ app.registerExtension({
161169
nodeData.name !== "BizyAir_NanoBananaPro" &&
162170
nodeData.name !== "BizyAir_NanoBananaProOfficial" &&
163171
nodeData.name !== "BizyAir_NanoBanana2" &&
164-
nodeData.name !== "BizyAir_Seedream5"
172+
nodeData.name !== "BizyAir_Seedream5" &&
173+
nodeData.name !== "BizyAir_VIDU_Q3_T2V_API" &&
174+
nodeData.name !== "BizyAir_VIDU_Q3_I2V_API"
165175
) {
166176
return;
167177
}
168178

169179
if (
170180
nodeData.name === "BizyAir_NanoBananaPro" ||
171181
nodeData.name === "BizyAir_NanoBananaProOfficial" ||
172-
nodeData.name === "BizyAir_NanoBanana2"
182+
nodeData.name === "BizyAir_NanoBanana2" ||
183+
nodeData.name === "BizyAir_VIDU_Q3_T2V_API" ||
184+
nodeData.name === "BizyAir_VIDU_Q3_I2V_API"
173185
) {
174186
if (!nodeData.input) nodeData.input = {};
175187
if (!nodeData.input.required) nodeData.input.required = {};

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.1
1+
1.3.12

0 commit comments

Comments
 (0)