@umituz/react-native-ai-pruna-provider 1.0.33 → 1.0.34
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-pruna-provider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "Pruna AI provider for React Native - implements IAIProvider interface for unified AI generation",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -119,7 +119,7 @@ async function buildImageEditInput(
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
generationLogCollector.log(sessionId, TAG, `p-image-edit:
|
|
122
|
+
generationLogCollector.log(sessionId, TAG, `p-image-edit: image upload completed, using first image`);
|
|
123
123
|
|
|
124
124
|
// __DEV__ log final payload
|
|
125
125
|
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
@@ -127,12 +127,13 @@ async function buildImageEditInput(
|
|
|
127
127
|
imageCount: imageUrls.length,
|
|
128
128
|
promptLength: prompt.length,
|
|
129
129
|
aspectRatio,
|
|
130
|
-
|
|
130
|
+
imageUrl: imageUrls[0].substring(0, 60) + '...',
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
// Pruna API expects singular 'image' (not 'images' array)
|
|
134
135
|
const payload: Record<string, unknown> = {
|
|
135
|
-
|
|
136
|
+
image: imageUrls[0], // Use first uploaded image
|
|
136
137
|
prompt,
|
|
137
138
|
aspect_ratio: aspectRatio,
|
|
138
139
|
};
|