@umituz/react-native-ai-generation-content 1.83.82 → 1.83.84
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.83.
|
|
3
|
+
"version": "1.83.84",
|
|
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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { WizardVideoInput } from "./video-generation.types";
|
|
9
9
|
import type { VideoModelConfig } from "../../../../../domain/interfaces/video-model-config.types";
|
|
10
|
-
import {
|
|
10
|
+
import { VIDEO_GENERATION_TIMEOUT_MS, BASE64_IMAGE_PREFIX } from "./wizard-strategy.constants";
|
|
11
11
|
import { createGenerationError, GenerationErrorType } from "../../../../../infrastructure/utils/error-factory";
|
|
12
12
|
|
|
13
13
|
|
|
@@ -91,7 +91,7 @@ export async function executeVideoGeneration(
|
|
|
91
91
|
|
|
92
92
|
let lastStatus = "";
|
|
93
93
|
const result = await provider.subscribe(model, modelInput, {
|
|
94
|
-
timeoutMs:
|
|
94
|
+
timeoutMs: VIDEO_GENERATION_TIMEOUT_MS,
|
|
95
95
|
onQueueUpdate: (status) => {
|
|
96
96
|
if (status.status !== lastStatus) {
|
|
97
97
|
lastStatus = status.status;
|
package/src/domains/generation/wizard/infrastructure/strategies/wizard-strategy.constants.ts
CHANGED
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
import { env } from "../../../../../infrastructure/config/env.config";
|
|
7
7
|
|
|
8
|
-
/** Generation timeout in milliseconds */
|
|
8
|
+
/** Generation timeout in milliseconds (image) */
|
|
9
9
|
export const GENERATION_TIMEOUT_MS = env.generationImageTimeoutMs;
|
|
10
10
|
|
|
11
|
+
/** Video generation timeout in milliseconds */
|
|
12
|
+
export const VIDEO_GENERATION_TIMEOUT_MS = env.generationVideoTimeoutMs;
|
|
13
|
+
|
|
11
14
|
/** Base64 image format prefix */
|
|
12
15
|
export const BASE64_IMAGE_PREFIX = "data:image/jpeg;base64,";
|
|
13
16
|
|