@ai-sdk/google 3.0.0-beta.51 → 3.0.0-beta.52

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.0-beta.52
4
+
5
+ ### Patch Changes
6
+
7
+ - fff8d59: feat(provider/google): Add support for the imageSize provider option
8
+
3
9
  ## 3.0.0-beta.51
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -31,6 +31,7 @@ declare const googleGenerativeAIProviderOptions: _ai_sdk_provider_utils.LazySche
31
31
  mediaResolution?: "MEDIA_RESOLUTION_UNSPECIFIED" | "MEDIA_RESOLUTION_LOW" | "MEDIA_RESOLUTION_MEDIUM" | "MEDIA_RESOLUTION_HIGH" | undefined;
32
32
  imageConfig?: {
33
33
  aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | undefined;
34
+ imageSize?: "1K" | "2K" | "4K" | undefined;
34
35
  } | undefined;
35
36
  }>;
36
37
  type GoogleGenerativeAIProviderOptions = InferSchema<typeof googleGenerativeAIProviderOptions>;
package/dist/index.d.ts CHANGED
@@ -31,6 +31,7 @@ declare const googleGenerativeAIProviderOptions: _ai_sdk_provider_utils.LazySche
31
31
  mediaResolution?: "MEDIA_RESOLUTION_UNSPECIFIED" | "MEDIA_RESOLUTION_LOW" | "MEDIA_RESOLUTION_MEDIUM" | "MEDIA_RESOLUTION_HIGH" | undefined;
32
32
  imageConfig?: {
33
33
  aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | undefined;
34
+ imageSize?: "1K" | "2K" | "4K" | undefined;
34
35
  } | undefined;
35
36
  }>;
36
37
  type GoogleGenerativeAIProviderOptions = InferSchema<typeof googleGenerativeAIProviderOptions>;
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils13 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.0-beta.51" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.0-beta.52" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -574,7 +574,8 @@ var googleGenerativeAIProviderOptions = (0, import_provider_utils5.lazySchema)(
574
574
  "9:16",
575
575
  "16:9",
576
576
  "21:9"
577
- ]).optional()
577
+ ]).optional(),
578
+ imageSize: import_v44.z.enum(["1K", "2K", "4K"]).optional()
578
579
  }).optional()
579
580
  })
580
581
  )