@umituz/react-native-ai-gemini-provider 1.14.16 → 1.14.18

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-gemini-provider",
3
- "version": "1.14.16",
3
+ "version": "1.14.18",
4
4
  "description": "Google Gemini AI provider for React Native applications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -110,11 +110,11 @@ export class GeminiProvider implements IAIProvider {
110
110
 
111
111
  const result = await generationExecutor.executeGeneration<T>(model, input, {
112
112
  onProgress: (progress: number) => {
113
- options?.onProgress?.({ progress, status: "IN_PROGRESS" });
113
+ options?.onProgress?.(progress);
114
114
  },
115
115
  });
116
116
 
117
- options?.onProgress?.({ progress: 100, status: "COMPLETED" });
117
+ options?.onProgress?.(100);
118
118
  options?.onQueueUpdate?.({ status: "COMPLETED" });
119
119
  options?.onResult?.(result);
120
120
 
@@ -128,7 +128,7 @@ export class GeminiProvider implements IAIProvider {
128
128
  ): Promise<T> {
129
129
  return generationExecutor.executeGeneration<T>(model, input, {
130
130
  onProgress: (progress: number) => {
131
- options?.onProgress?.({ progress, status: "IN_PROGRESS" });
131
+ options?.onProgress?.(progress);
132
132
  },
133
133
  });
134
134
  }