@umituz/react-native-ai-gemini-provider 1.3.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
|
@@ -22,7 +22,7 @@ const DEFAULT_CONFIG: Partial<GeminiConfig> = {
|
|
|
22
22
|
maxDelay: 10000,
|
|
23
23
|
defaultTimeoutMs: 60000,
|
|
24
24
|
defaultModel: "gemini-2.0-flash",
|
|
25
|
-
imageModel: "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-
|
|
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
|