@ai-sdk/google-vertex 5.0.19 → 5.0.21

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,21 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0b61267]
8
+ - Updated dependencies [5b4a299]
9
+ - @ai-sdk/openai-compatible@3.0.11
10
+ - @ai-sdk/google@4.0.17
11
+
12
+ ## 5.0.20
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [662ddfc]
17
+ - @ai-sdk/google@4.0.16
18
+
3
19
  ## 5.0.19
4
20
 
5
21
  ### Patch Changes
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.19" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.21" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -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.19" : "0.0.0-test";
21
+ var VERSION = true ? "5.0.21" : "0.0.0-test";
22
22
 
23
23
  // src/google-vertex-embedding-model.ts
24
24
  import {
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  } from "@ai-sdk/provider-utils";
34
34
 
35
35
  // src/version.ts
36
- var VERSION = true ? "5.0.19" : "0.0.0-test";
36
+ var VERSION = true ? "5.0.21" : "0.0.0-test";
37
37
 
38
38
  // src/google-vertex-embedding-model.ts
39
39
  import {
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.19" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.21" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.19" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.21" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -321,6 +321,51 @@ The following optional provider options are available for Google Vertex models:
321
321
 
322
322
  Consult [Google's Documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls) for usage details.
323
323
 
324
+ - **imageConfig** _object_
325
+
326
+ Optional. Configuration for image generation. Only supported by Gemini image models.
327
+
328
+ See [Google's GenerationConfig documentation](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/GenerationConfig) for usage details.
329
+ - **aspectRatio** _string_
330
+
331
+ Optional. The aspect ratio of generated images. Defaults to 1:1 squares, or to matching the output image size to that of an input image. Can be one of the following:
332
+ - 1:1
333
+ - 2:3
334
+ - 3:2
335
+ - 3:4
336
+ - 4:3
337
+ - 4:5
338
+ - 5:4
339
+ - 9:16
340
+ - 16:9
341
+ - 21:9
342
+
343
+ - **imageSize** _string_
344
+
345
+ Optional. Controls the output image resolution. Defaults to 1K. Can be one of the following:
346
+ - 1K
347
+ - 2K
348
+ - 4K
349
+
350
+ - **personGeneration** _string_
351
+
352
+ Optional. Controls the generation of people in images. Can be one of the following:
353
+ - `PERSON_GENERATION_UNSPECIFIED`
354
+ - `ALLOW_ALL`
355
+ - `ALLOW_ADULT`
356
+ - `ALLOW_NONE`
357
+
358
+ - **prominentPeople** _string_
359
+
360
+ Optional. Controls whether generation of prominent people (celebrities) is allowed. When set together with `personGeneration`, `personGeneration` takes precedence. Can be one of the following:
361
+ - `PROMINENT_PEOPLE_UNSPECIFIED`
362
+ - `ALLOW_PROMINENT_PEOPLE`
363
+ - `BLOCK_PROMINENT_PEOPLE`
364
+
365
+ - **imageOutputOptions** _\{ mimeType?: 'image/jpeg' | 'image/png', compressionQuality?: number \}_
366
+
367
+ Optional. The image output format for generated images.
368
+
324
369
  - **streamFunctionCallArguments** _boolean_
325
370
 
326
371
  Optional. When set to true, function call arguments will be streamed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.19",
3
+ "version": "5.0.21",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -73,8 +73,8 @@
73
73
  "dependencies": {
74
74
  "google-auth-library": "^10.6.2",
75
75
  "@ai-sdk/anthropic": "4.0.15",
76
- "@ai-sdk/google": "4.0.15",
77
- "@ai-sdk/openai-compatible": "3.0.10",
76
+ "@ai-sdk/google": "4.0.17",
77
+ "@ai-sdk/openai-compatible": "3.0.11",
78
78
  "@ai-sdk/provider": "4.0.3",
79
79
  "@ai-sdk/provider-utils": "5.0.10"
80
80
  },