@umituz/react-native-ai-fal-provider 1.0.9 → 1.0.11

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-fal-provider",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "FAL AI provider for React Native - implements IAIProvider interface for unified AI generation",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -148,7 +148,7 @@ export function getAllDefaultModels(): FalModelConfig[] {
148
148
 
149
149
  export const DEFAULT_TEXT_TO_TEXT_MODELS: FalModelConfig[] = [
150
150
  {
151
- id: "fal-ai/llama-3-8cl-instruct",
151
+ id: "fal-ai/llama-3-8b-instruct",
152
152
  name: "Llama 3 8B Instruct",
153
153
  type: "text-to-text",
154
154
  isDefault: true,
@@ -18,7 +18,10 @@ import type {
18
18
  VideoFeatureInputData,
19
19
  ProviderCapabilities,
20
20
  } from "@umituz/react-native-ai-generation-content";
21
- import type { FalQueueStatus, FalLogEntry } from "../../domain/entities/fal.types";
21
+ import type {
22
+ FalQueueStatus,
23
+ FalLogEntry,
24
+ } from "../../domain/entities/fal.types";
22
25
  import {
23
26
  FAL_IMAGE_FEATURE_MODELS,
24
27
  FAL_VIDEO_FEATURE_MODELS,
@@ -159,7 +162,10 @@ export class FalProvider implements IAIProvider {
159
162
  return mapFalStatusToJobStatus(status as unknown as FalQueueStatus);
160
163
  }
161
164
 
162
- async getJobResult<T = unknown>(model: string, requestId: string): Promise<T> {
165
+ async getJobResult<T = unknown>(
166
+ model: string,
167
+ requestId: string,
168
+ ): Promise<T> {
163
169
  this.validateInitialization();
164
170
 
165
171
  const result = await fal.queue.result(model, { requestId });
@@ -174,7 +180,10 @@ export class FalProvider implements IAIProvider {
174
180
  ): Promise<T> {
175
181
  this.validateInitialization();
176
182
 
177
- const timeoutMs = options?.timeoutMs ?? this.config?.defaultTimeoutMs ?? DEFAULT_CONFIG.defaultTimeoutMs;
183
+ const timeoutMs =
184
+ options?.timeoutMs ??
185
+ this.config?.defaultTimeoutMs ??
186
+ DEFAULT_CONFIG.defaultTimeoutMs;
178
187
  let timeoutId: ReturnType<typeof setTimeout> | null = null;
179
188
 
180
189
  if (typeof __DEV__ !== "undefined" && __DEV__) {
@@ -187,7 +196,9 @@ export class FalProvider implements IAIProvider {
187
196
  fal.subscribe(model, {
188
197
  input,
189
198
  onQueueUpdate: (update) => {
190
- const jobStatus = mapFalStatusToJobStatus(update as unknown as FalQueueStatus);
199
+ const jobStatus = mapFalStatusToJobStatus(
200
+ update as unknown as FalQueueStatus,
201
+ );
191
202
  options?.onQueueUpdate?.(jobStatus);
192
203
  },
193
204
  }),
@@ -232,7 +243,10 @@ export class FalProvider implements IAIProvider {
232
243
 
233
244
  if (typeof __DEV__ !== "undefined" && __DEV__) {
234
245
  // eslint-disable-next-line no-console
235
- console.log("[FalProvider] run() raw result:", JSON.stringify(result, null, 2));
246
+ console.log(
247
+ "[FalProvider] run() raw result:",
248
+ JSON.stringify(result, null, 2),
249
+ );
236
250
  }
237
251
 
238
252
  options?.onProgress?.({ progress: 100, status: "COMPLETED" });