@umituz/react-native-ai-pruna-provider 1.0.40 → 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.40",
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",
@@ -194,25 +194,14 @@ async function buildImageEditInput(
194
194
  if (input.width !== undefined) payload.width = input.width;
195
195
  if (input.height !== undefined) payload.height = input.height;
196
196
 
197
- // Advanced quality parameters
198
- if (input.num_inference_steps !== undefined) {
199
- payload.num_inference_steps = input.num_inference_steps;
200
- generationLogCollector.log(sessionId, TAG, `Added num_inference_steps: ${input.num_inference_steps}`);
201
- }
202
- if (input.guidance_scale !== undefined) {
203
- payload.guidance_scale = input.guidance_scale;
204
- generationLogCollector.log(sessionId, TAG, `Added guidance_scale: ${input.guidance_scale}`);
205
- }
206
- if (input.strength !== undefined) {
207
- payload.strength = input.strength;
208
- generationLogCollector.log(sessionId, TAG, `Added strength: ${input.strength}`);
209
- }
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
210
200
 
211
201
  generationLogCollector.log(sessionId, TAG, `<<< buildImageEditInput COMPLETE`, {
212
202
  payloadKeys: Object.keys(payload),
213
203
  imageCount: imageUrls.length,
214
204
  hasSeed: !!payload.seed,
215
- hasQualityParams: !!(payload.num_inference_steps || payload.guidance_scale || payload.strength),
216
205
  });
217
206
 
218
207
  return payload;