@umituz/react-native-ai-generation-content 1.26.0 → 1.26.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.26.
|
|
3
|
+
"version": "1.26.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",
|
|
@@ -16,8 +16,15 @@ const formatBase64 = (base64: string): string => {
|
|
|
16
16
|
|
|
17
17
|
export async function executeCoupleFuture(
|
|
18
18
|
input: CoupleFutureInput,
|
|
19
|
-
config
|
|
19
|
+
config: CoupleFutureConfig,
|
|
20
20
|
): Promise<CoupleFutureResult> {
|
|
21
|
+
if (!config || !config.model) {
|
|
22
|
+
return {
|
|
23
|
+
success: false,
|
|
24
|
+
error: "Model is required. Please provide model from app's generation config.",
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
22
29
|
console.log("[Executor] ========== COUPLE FUTURE START ==========");
|
|
23
30
|
console.log("[Executor] Input received:", {
|
|
@@ -29,6 +36,7 @@ export async function executeCoupleFuture(
|
|
|
29
36
|
prompt: input.prompt?.slice(0, 300),
|
|
30
37
|
});
|
|
31
38
|
console.log("[Executor] Config:", {
|
|
39
|
+
model: config.model,
|
|
32
40
|
hasOnProgress: !!config?.onProgress,
|
|
33
41
|
timeoutMs: config?.timeoutMs,
|
|
34
42
|
aspectRatio: config?.aspectRatio,
|
|
@@ -99,7 +107,7 @@ export async function executeCoupleFuture(
|
|
|
99
107
|
|
|
100
108
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
101
109
|
console.log("[Executor] 📤 FAL AI Request:");
|
|
102
|
-
console.log("[Executor] Model:",
|
|
110
|
+
console.log("[Executor] Model:", config.model);
|
|
103
111
|
console.log("[Executor] Prompt:", enhancedPrompt.slice(0, 400));
|
|
104
112
|
console.log("[Executor] Aspect ratio:", modelInput.aspect_ratio);
|
|
105
113
|
console.log("[Executor] Output format:", modelInput.output_format);
|
|
@@ -110,7 +118,7 @@ export async function executeCoupleFuture(
|
|
|
110
118
|
console.log("[Executor] 📡 Calling provider.subscribe()...");
|
|
111
119
|
}
|
|
112
120
|
|
|
113
|
-
const result = await provider.subscribe(
|
|
121
|
+
const result = await provider.subscribe(config.model, modelInput, {
|
|
114
122
|
timeoutMs: timeoutMs ?? COUPLE_FUTURE_DEFAULTS.timeoutMs,
|
|
115
123
|
onQueueUpdate: (status) => {
|
|
116
124
|
if (status.status === lastStatus) return;
|