@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
|
@@ -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
|
-
|
|
113
|
+
options?.onProgress?.(progress);
|
|
114
114
|
},
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
options?.onProgress?.(
|
|
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?.(
|
|
131
|
+
options?.onProgress?.(progress);
|
|
132
132
|
},
|
|
133
133
|
});
|
|
134
134
|
}
|