@umituz/react-native-ai-pruna-provider 1.0.39 → 1.0.41
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.41",
|
|
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",
|
|
@@ -188,11 +188,16 @@ async function buildImageEditInput(
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
// Optional parameters for quality control
|
|
191
192
|
if (input.seed !== undefined) payload.seed = input.seed;
|
|
192
193
|
if (input.disable_safety_checker !== undefined) payload.disable_safety_checker = input.disable_safety_checker;
|
|
193
194
|
if (input.width !== undefined) payload.width = input.width;
|
|
194
195
|
if (input.height !== undefined) payload.height = input.height;
|
|
195
196
|
|
|
197
|
+
// Pruna API supported parameters - ONLY add supported ones!
|
|
198
|
+
// p-image-edit supports: images, prompt, aspect_ratio, seed (maybe)
|
|
199
|
+
// Does NOT support: num_inference_steps, guidance_scale, strength
|
|
200
|
+
|
|
196
201
|
generationLogCollector.log(sessionId, TAG, `<<< buildImageEditInput COMPLETE`, {
|
|
197
202
|
payloadKeys: Object.keys(payload),
|
|
198
203
|
imageCount: imageUrls.length,
|