@ai-sdk/google-vertex 5.0.86 → 5.0.88
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 +26 -0
- package/dist/anthropic/edge/index.js +1 -1
- package/dist/edge/index.js +2 -8
- package/dist/edge/index.js.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/maas/edge/index.js +1 -1
- package/dist/xai/edge/index.js +1 -1
- package/package.json +5 -5
- package/src/google-vertex-image-model.ts +1 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @ai-sdk/google-vertex
|
|
2
2
|
|
|
3
|
+
## 5.0.88
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [2973485]
|
|
8
|
+
- Updated dependencies [a4db5ea]
|
|
9
|
+
- Updated dependencies [2937ea2]
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.45
|
|
11
|
+
- @ai-sdk/anthropic@4.0.58
|
|
12
|
+
- @ai-sdk/google@4.0.76
|
|
13
|
+
- @ai-sdk/openai-compatible@3.0.53
|
|
14
|
+
|
|
15
|
+
## 5.0.87
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- e369c4d: fix(google): advertise the supported Gemini image per-call limit
|
|
20
|
+
- Updated dependencies [e369c4d]
|
|
21
|
+
- Updated dependencies [2b391f8]
|
|
22
|
+
- Updated dependencies [1284569]
|
|
23
|
+
- Updated dependencies [0455398]
|
|
24
|
+
- @ai-sdk/google@4.0.75
|
|
25
|
+
- @ai-sdk/provider-utils@5.0.44
|
|
26
|
+
- @ai-sdk/anthropic@4.0.57
|
|
27
|
+
- @ai-sdk/openai-compatible@3.0.52
|
|
28
|
+
|
|
3
29
|
## 5.0.86
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/edge/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "@ai-sdk/provider-utils";
|
|
19
19
|
|
|
20
20
|
// src/version.ts
|
|
21
|
-
var VERSION = true ? "5.0.
|
|
21
|
+
var VERSION = true ? "5.0.88" : "0.0.0-test";
|
|
22
22
|
|
|
23
23
|
// src/google-vertex-embedding-model.ts
|
|
24
24
|
import {
|
|
@@ -270,7 +270,7 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
|
|
|
270
270
|
this.modelId = modelId;
|
|
271
271
|
this.config = config;
|
|
272
272
|
this.specificationVersion = "v4";
|
|
273
|
-
this.maxImagesPerCall =
|
|
273
|
+
this.maxImagesPerCall = 1;
|
|
274
274
|
}
|
|
275
275
|
static [WORKFLOW_SERIALIZE2](model) {
|
|
276
276
|
return serializeModelOptions2({
|
|
@@ -293,7 +293,6 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
|
|
|
293
293
|
}
|
|
294
294
|
const {
|
|
295
295
|
prompt,
|
|
296
|
-
n,
|
|
297
296
|
size,
|
|
298
297
|
aspectRatio,
|
|
299
298
|
seed,
|
|
@@ -309,11 +308,6 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
|
|
|
309
308
|
"Gemini image models do not support mask-based image editing."
|
|
310
309
|
);
|
|
311
310
|
}
|
|
312
|
-
if (n != null && n > 1) {
|
|
313
|
-
throw new Error(
|
|
314
|
-
"Gemini image models do not support generating a set number of images per call. Use n=1 or omit the n parameter."
|
|
315
|
-
);
|
|
316
|
-
}
|
|
317
311
|
if (size != null) {
|
|
318
312
|
warnings.push({
|
|
319
313
|
type: "unsupported",
|