@umituz/react-native-ai-gemini-provider 1.2.0 → 1.4.0

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-gemini-provider",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Google Gemini AI provider for React Native applications",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -21,8 +21,8 @@ const DEFAULT_CONFIG: Partial<GeminiConfig> = {
21
21
  baseDelay: 1000,
22
22
  maxDelay: 10000,
23
23
  defaultTimeoutMs: 60000,
24
- defaultModel: "gemini-1.5-flash",
25
- imageModel: "gemini-2.0-flash-exp",
24
+ defaultModel: "gemini-2.0-flash",
25
+ imageModel: "gemini-2.0-flash-preview-image-generation",
26
26
  };
27
27
 
28
28
  const RETRYABLE_ERROR_PATTERNS = [
@@ -233,7 +233,7 @@ class GeminiClientService {
233
233
  images?: Array<{ base64: string; mimeType: string }>,
234
234
  config?: GeminiGenerationConfig,
235
235
  ): Promise<GeminiImageGenerationResult> {
236
- const imageModel = this.config?.imageModel || "gemini-2.0-flash-exp";
236
+ const imageModel = this.config?.imageModel || "gemini-2.0-flash-preview-image-generation";
237
237
 
238
238
  if (typeof __DEV__ !== "undefined" && __DEV__) {
239
239
  // eslint-disable-next-line no-console