@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/CHANGELOG.md +9 -0
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @ai-sdk/google
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.82
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9061dc0: feat: image editing
|
|
8
|
+
- Updated dependencies [9061dc0]
|
|
9
|
+
- @ai-sdk/provider-utils@4.0.0-beta.54
|
|
10
|
+
- @ai-sdk/provider@3.0.0-beta.28
|
|
11
|
+
|
|
3
12
|
## 3.0.0-beta.81
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
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 ? "3.0.0-beta.
|
|
33
|
+
var VERSION = true ? "3.0.0-beta.82" : "0.0.0-test";
|
|
34
34
|
|
|
35
35
|
// src/google-generative-ai-embedding-model.ts
|
|
36
36
|
var import_provider = require("@ai-sdk/provider");
|
|
@@ -1756,14 +1756,26 @@ var GoogleGenerativeAIImageModel = class {
|
|
|
1756
1756
|
const {
|
|
1757
1757
|
prompt,
|
|
1758
1758
|
n = 1,
|
|
1759
|
-
size
|
|
1759
|
+
size,
|
|
1760
1760
|
aspectRatio = "1:1",
|
|
1761
1761
|
seed,
|
|
1762
1762
|
providerOptions,
|
|
1763
1763
|
headers,
|
|
1764
|
-
abortSignal
|
|
1764
|
+
abortSignal,
|
|
1765
|
+
files,
|
|
1766
|
+
mask
|
|
1765
1767
|
} = options;
|
|
1766
1768
|
const warnings = [];
|
|
1769
|
+
if (files != null && files.length > 0) {
|
|
1770
|
+
throw new Error(
|
|
1771
|
+
"Google Generative AI does not support image editing. Use Google Vertex AI (@ai-sdk/google-vertex) for image editing capabilities."
|
|
1772
|
+
);
|
|
1773
|
+
}
|
|
1774
|
+
if (mask != null) {
|
|
1775
|
+
throw new Error(
|
|
1776
|
+
"Google Generative AI does not support image editing with masks. Use Google Vertex AI (@ai-sdk/google-vertex) for image editing capabilities."
|
|
1777
|
+
);
|
|
1778
|
+
}
|
|
1767
1779
|
if (size != null) {
|
|
1768
1780
|
warnings.push({
|
|
1769
1781
|
type: "unsupported",
|