@umituz/react-native-ai-fal-provider 1.0.28 → 1.0.30

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-fal-provider",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "FAL AI provider for React Native - implements IAIProvider interface for unified AI generation",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -150,26 +150,36 @@ export function buildAnimeSelfieInput(
150
150
  options?: AnimeSelfieOptions,
151
151
  ): Record<string, unknown> {
152
152
  const basePrompt = [
153
- "anime style portrait of this person",
154
- "big expressive anime eyes",
155
- "smooth flawless anime skin",
156
- "colorful vibrant hair",
157
- "Studio Ghibli and Makoto Shinkai inspired artwork",
158
- "detailed anime illustration",
159
- "clean linework",
160
- "professional anime character design",
161
- "soft lighting",
162
- "beautiful anime aesthetic",
153
+ // Identity preservation - CRITICAL
154
+ "same person",
155
+ "preserve original face structure",
156
+ "preserve original gender",
157
+ "preserve original hair color and style",
158
+ "preserve original eye color",
159
+ "same facial features",
160
+ // Anime style
161
+ "2D anime illustration",
162
+ "japanese anime art style",
163
+ "cel-shaded anime character",
164
+ "large sparkling anime eyes with detailed iris",
165
+ "smooth cel-shaded skin with subtle anime blush",
166
+ "stylized anime hair with highlights",
167
+ "Studio Ghibli inspired",
168
+ "vibrant anime colors",
169
+ "clean anime lineart",
170
+ "professional anime portrait",
163
171
  ].join(", ");
164
172
 
165
173
  const stylePrompt = options?.style
166
- ? `${options.style} anime style, ${basePrompt}`
174
+ ? `${options.style} style, ${basePrompt}`
167
175
  : basePrompt;
168
176
 
169
177
  return buildSingleImageInput(base64, {
170
178
  prompt: stylePrompt,
171
- strength: 0.78,
172
- num_inference_steps: 40,
179
+ negative_prompt:
180
+ "gender swap, different person, wrong gender, photorealistic, realistic photo, 3D render, hyperrealistic, deformed face, bad anatomy, extra limbs",
181
+ strength: 0.75,
182
+ num_inference_steps: 50,
173
183
  guidance_scale: 7.5,
174
184
  });
175
185
  }