@umituz/react-native-ai-generation-content 1.52.2 → 1.53.0
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.
|
|
3
|
+
"version": "1.53.0",
|
|
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.strategy.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Video Generation Strategy
|
|
3
3
|
* Handles video-specific generation logic (execution only)
|
|
4
|
+
* Uses clean prompts for Sora 2 - no complex identity preservation text
|
|
4
5
|
*/
|
|
5
6
|
|
|
6
7
|
import {
|
|
7
8
|
executeVideoFeature,
|
|
8
9
|
submitVideoFeatureToQueue,
|
|
9
10
|
} from "../../../../../infrastructure/services/video-feature-executor.service";
|
|
10
|
-
import { buildUnifiedPrompt } from "./shared/unified-prompt-builder";
|
|
11
11
|
import type { WizardScenarioData } from "../../presentation/hooks/useWizardGeneration";
|
|
12
12
|
import type { WizardStrategy } from "./wizard-strategy.types";
|
|
13
13
|
import { VIDEO_PROCESSING_PROMPTS } from "./wizard-strategy.constants";
|
|
@@ -36,12 +36,12 @@ export async function buildVideoInput(
|
|
|
36
36
|
throw new Error(validation.errorKey ?? "error.generation.invalidInput");
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
let
|
|
39
|
+
let finalPrompt = extractPrompt(wizardData, scenario.aiPrompt);
|
|
40
40
|
|
|
41
|
-
if (!
|
|
41
|
+
if (!finalPrompt) {
|
|
42
42
|
const defaultPrompt = VIDEO_PROCESSING_PROMPTS[scenario.id];
|
|
43
43
|
if (defaultPrompt) {
|
|
44
|
-
|
|
44
|
+
finalPrompt = defaultPrompt;
|
|
45
45
|
} else {
|
|
46
46
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
47
47
|
console.error("[VideoStrategy] No prompt found for scenario:", scenario.id);
|
|
@@ -51,17 +51,11 @@ export async function buildVideoInput(
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
//
|
|
55
|
-
|
|
56
|
-
basePrompt,
|
|
57
|
-
photoCount: photos.length,
|
|
58
|
-
interactionStyle: scenario.interactionStyle as string | undefined,
|
|
59
|
-
});
|
|
60
|
-
|
|
54
|
+
// For video generation with Sora 2, use clean prompt directly
|
|
55
|
+
// No need for complex identity preservation text - Sora 2 handles this natively
|
|
61
56
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
62
|
-
console.log("[VideoStrategy]
|
|
63
|
-
|
|
64
|
-
finalLength: finalPrompt.length,
|
|
57
|
+
console.log("[VideoStrategy] Using clean prompt for Sora 2", {
|
|
58
|
+
promptLength: finalPrompt.length,
|
|
65
59
|
photoCount: photos.length,
|
|
66
60
|
});
|
|
67
61
|
}
|