@ai-sdk/google 2.0.55 → 2.0.56

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
+ ## 2.0.56
4
+
5
+ ### Patch Changes
6
+
7
+ - a1c0208: feat(provider/google): add support for new Google image model aspect ratios and sizes
8
+
3
9
  ## 2.0.55
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -30,8 +30,8 @@ declare const googleGenerativeAIProviderOptions: _ai_sdk_provider_utils.LazySche
30
30
  labels?: Record<string, string> | undefined;
31
31
  mediaResolution?: "MEDIA_RESOLUTION_UNSPECIFIED" | "MEDIA_RESOLUTION_LOW" | "MEDIA_RESOLUTION_MEDIUM" | "MEDIA_RESOLUTION_HIGH" | undefined;
32
32
  imageConfig?: {
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;
33
+ aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | "1:8" | "8:1" | "1:4" | "4:1" | undefined;
34
+ imageSize?: "1K" | "2K" | "4K" | "512" | undefined;
35
35
  } | undefined;
36
36
  retrievalConfig?: {
37
37
  latLng?: {
package/dist/index.d.ts CHANGED
@@ -30,8 +30,8 @@ declare const googleGenerativeAIProviderOptions: _ai_sdk_provider_utils.LazySche
30
30
  labels?: Record<string, string> | undefined;
31
31
  mediaResolution?: "MEDIA_RESOLUTION_UNSPECIFIED" | "MEDIA_RESOLUTION_LOW" | "MEDIA_RESOLUTION_MEDIUM" | "MEDIA_RESOLUTION_HIGH" | undefined;
32
32
  imageConfig?: {
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;
33
+ aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | "1:8" | "8:1" | "1:4" | "4:1" | undefined;
34
+ imageSize?: "1K" | "2K" | "4K" | "512" | undefined;
35
35
  } | undefined;
36
36
  retrievalConfig?: {
37
37
  latLng?: {
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils15 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "2.0.55" : "0.0.0-test";
33
+ var VERSION = true ? "2.0.56" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -595,9 +595,13 @@ var googleGenerativeAIProviderOptions = (0, import_provider_utils5.lazySchema)(
595
595
  "5:4",
596
596
  "9:16",
597
597
  "16:9",
598
- "21:9"
598
+ "21:9",
599
+ "1:8",
600
+ "8:1",
601
+ "1:4",
602
+ "4:1"
599
603
  ]).optional(),
600
- imageSize: import_v44.z.enum(["1K", "2K", "4K"]).optional()
604
+ imageSize: import_v44.z.enum(["1K", "2K", "4K", "512"]).optional()
601
605
  }).optional(),
602
606
  /**
603
607
  * Optional. Configuration for grounding retrieval.