@ai-sdk/google 3.0.0-beta.81 → 3.0.0-beta.82

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/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "3.0.0-beta.81" : "0.0.0-test";
10
+ var VERSION = true ? "3.0.0-beta.82" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -1792,14 +1792,26 @@ var GoogleGenerativeAIImageModel = class {
1792
1792
  const {
1793
1793
  prompt,
1794
1794
  n = 1,
1795
- size = "1024x1024",
1795
+ size,
1796
1796
  aspectRatio = "1:1",
1797
1797
  seed,
1798
1798
  providerOptions,
1799
1799
  headers,
1800
- abortSignal
1800
+ abortSignal,
1801
+ files,
1802
+ mask
1801
1803
  } = options;
1802
1804
  const warnings = [];
1805
+ if (files != null && files.length > 0) {
1806
+ throw new Error(
1807
+ "Google Generative AI does not support image editing. Use Google Vertex AI (@ai-sdk/google-vertex) for image editing capabilities."
1808
+ );
1809
+ }
1810
+ if (mask != null) {
1811
+ throw new Error(
1812
+ "Google Generative AI does not support image editing with masks. Use Google Vertex AI (@ai-sdk/google-vertex) for image editing capabilities."
1813
+ );
1814
+ }
1803
1815
  if (size != null) {
1804
1816
  warnings.push({
1805
1817
  type: "unsupported",