@umituz/react-native-ai-gemini-provider 1.14.20 → 1.14.21

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.14.20",
3
+ "version": "1.14.21",
4
4
  "description": "Google Gemini AI provider for React Native applications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -3,6 +3,8 @@
3
3
  * Configuration and response types for Google Gemini AI
4
4
  */
5
5
 
6
+ import type { GenerationConfig } from "@google/generative-ai";
7
+
6
8
  export interface GeminiConfig {
7
9
  apiKey: string;
8
10
  baseUrl?: string;
@@ -20,19 +22,10 @@ export interface GeminiConfig {
20
22
  videoGenerationModel?: string;
21
23
  }
22
24
 
23
- export interface GeminiGenerationConfig {
24
- temperature?: number;
25
- topK?: number;
26
- topP?: number;
27
- maxOutputTokens?: number;
28
- stopSequences?: string[];
29
- /** Response modalities for multimodal output (TEXT, IMAGE) */
30
- responseModalities?: Array<"TEXT" | "IMAGE">;
31
- /** Response MIME type for structured output (e.g., "application/json") */
32
- responseMimeType?: string;
33
- /** Response schema for structured JSON output */
34
- responseSchema?: Record<string, unknown>;
35
- }
25
+ export type GeminiGenerationConfig = Omit<GenerationConfig, "responseSchema"> & {
26
+ /** Response schema for structured JSON output - compatible with Google SDK */
27
+ responseSchema?: GenerationConfig["responseSchema"];
28
+ };
36
29
 
37
30
  export interface GeminiSafetySettings {
38
31
  category: GeminiHarmCategory;