@umituz/react-native-ai-generation-content 1.76.0 → 1.76.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.76.
|
|
3
|
+
"version": "1.76.1",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
package/src/domains/generation/wizard/infrastructure/strategies/video-generation.executor.ts
CHANGED
|
@@ -68,25 +68,19 @@ export async function executeVideoGeneration(
|
|
|
68
68
|
prompt: input.prompt,
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
if (sourceImage && sourceImage.length > 0) {
|
|
72
|
+
modelInput.image_url = sourceImage;
|
|
73
|
+
}
|
|
74
|
+
|
|
71
75
|
if (isSubjectReference) {
|
|
72
|
-
// Minimax Hailuo: Use subject_reference_image_url for face/identity only
|
|
73
|
-
if (sourceImage && sourceImage.length > 0) {
|
|
74
|
-
modelInput.subject_reference_image_url = sourceImage;
|
|
75
|
-
}
|
|
76
76
|
modelInput.prompt_optimizer = true;
|
|
77
|
-
// Minimax expects duration as string
|
|
78
77
|
if (input.duration) {
|
|
79
78
|
modelInput.duration = String(input.duration);
|
|
80
79
|
}
|
|
81
|
-
// Minimax uses uppercase resolution format (512P, 768P)
|
|
82
80
|
if (input.resolution) {
|
|
83
81
|
modelInput.resolution = input.resolution;
|
|
84
82
|
}
|
|
85
83
|
} else {
|
|
86
|
-
// Standard models (Grok, etc.): Use image_url
|
|
87
|
-
if (sourceImage && sourceImage.length > 0) {
|
|
88
|
-
modelInput.image_url = sourceImage;
|
|
89
|
-
}
|
|
90
84
|
if (input.duration) {
|
|
91
85
|
modelInput.duration = input.duration;
|
|
92
86
|
}
|
|
@@ -153,10 +147,11 @@ export async function submitVideoGenerationToQueue(
|
|
|
153
147
|
prompt: input.prompt,
|
|
154
148
|
};
|
|
155
149
|
|
|
150
|
+
if (sourceImage && sourceImage.length > 0) {
|
|
151
|
+
modelInput.image_url = sourceImage;
|
|
152
|
+
}
|
|
153
|
+
|
|
156
154
|
if (isSubjectReference) {
|
|
157
|
-
if (sourceImage && sourceImage.length > 0) {
|
|
158
|
-
modelInput.subject_reference_image_url = sourceImage;
|
|
159
|
-
}
|
|
160
155
|
modelInput.prompt_optimizer = true;
|
|
161
156
|
if (input.duration) {
|
|
162
157
|
modelInput.duration = String(input.duration);
|
|
@@ -165,9 +160,6 @@ export async function submitVideoGenerationToQueue(
|
|
|
165
160
|
modelInput.resolution = input.resolution;
|
|
166
161
|
}
|
|
167
162
|
} else {
|
|
168
|
-
if (sourceImage && sourceImage.length > 0) {
|
|
169
|
-
modelInput.image_url = sourceImage;
|
|
170
|
-
}
|
|
171
163
|
if (input.duration) {
|
|
172
164
|
modelInput.duration = input.duration;
|
|
173
165
|
}
|