@ai-sdk/google-vertex 5.0.12 → 5.0.14

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,29 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 0f93c57: feat (video): support video (not just image) reference inputs in `inputReferences` for reference-to-video generation
8
+ - Updated dependencies [17d66c5]
9
+ - Updated dependencies [96d40bc]
10
+ - Updated dependencies [0f93c57]
11
+ - @ai-sdk/google@4.0.11
12
+ - @ai-sdk/provider@4.0.3
13
+ - @ai-sdk/anthropic@4.0.11
14
+ - @ai-sdk/openai-compatible@3.0.7
15
+ - @ai-sdk/provider-utils@5.0.7
16
+
17
+ ## 5.0.13
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [ac306ed]
22
+ - @ai-sdk/provider-utils@5.0.6
23
+ - @ai-sdk/openai-compatible@3.0.6
24
+ - @ai-sdk/anthropic@4.0.10
25
+ - @ai-sdk/google@4.0.10
26
+
3
27
  ## 5.0.12
4
28
 
5
29
  ### 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.12" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.14" : "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.12" : "0.0.0-test";
21
+ var VERSION = true ? "5.0.14" : "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.12" : "0.0.0-test";
36
+ var VERSION = true ? "5.0.14" : "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.12" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.14" : "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.12" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.14" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -20,24 +20,7 @@ The Google Vertex provider for the [AI SDK](/docs) contains language model suppo
20
20
 
21
21
  The Google Vertex, Google Vertex Anthropic, Google Vertex xAI, and Google Vertex MaaS providers are available in the `@ai-sdk/google-vertex` module. You can install it with
22
22
 
23
- <Tabs items={['pnpm', 'npm', 'yarn', 'bun']}>
24
- <Tab>
25
- <Snippet text="pnpm add @ai-sdk/google-vertex" dark />
26
- </Tab>
27
- <Tab>
28
- <Snippet text="npm install @ai-sdk/google-vertex" dark />
29
- </Tab>
30
- <Tab>
31
- <Snippet
32
- text="yarn add @ai-sdk/google-vertex @google-cloud/vertexai"
33
- dark
34
- />
35
- </Tab>
36
-
37
- <Tab>
38
- <Snippet text="bun add @ai-sdk/google-vertex" dark />
39
- </Tab>
40
- </Tabs>
23
+ <InstallPackages packages="@ai-sdk/google-vertex" />
41
24
 
42
25
  ## Google Vertex Provider Usage
43
26
 
@@ -870,13 +853,13 @@ The following Zod features are known to not work with Google Vertex:
870
853
 
871
854
  ### Model Capabilities
872
855
 
873
- | Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
874
- | ---------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
875
- | `gemini-3.5-flash` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
876
- | `gemini-3-pro-preview` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
877
- | `gemini-2.5-pro` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
878
- | `gemini-2.5-flash` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
879
- | `gemini-2.0-flash-001` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
856
+ | Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
857
+ | ---------------------- | ----------- | ----------------- | ---------- | -------------- |
858
+ | `gemini-3.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
859
+ | `gemini-3-pro-preview` | <Check /> | <Check /> | <Check /> | <Check /> |
860
+ | `gemini-2.5-pro` | <Check /> | <Check /> | <Check /> | <Check /> |
861
+ | `gemini-2.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
862
+ | `gemini-2.0-flash-001` | <Check /> | <Check /> | <Check /> | <Check /> |
880
863
 
881
864
  <Note>
882
865
  The table above lists popular models. Please see the [Google Vertex AI
@@ -945,11 +928,11 @@ The following optional provider options are available for Google Vertex AI embed
945
928
 
946
929
  #### Model Capabilities
947
930
 
948
- | Model | Max Values Per Call | Parallel Calls | Multimodal |
949
- | ---------------------------- | ------------------- | ------------------- | ------------------- |
950
- | `text-embedding-005` | 2048 | <Check size={18} /> | <Cross size={18} /> |
951
- | `gemini-embedding-2` | 2048 | <Check size={18} /> | <Check size={18} /> |
952
- | `gemini-embedding-2-preview` | 2048 | <Check size={18} /> | <Check size={18} /> |
931
+ | Model | Max Values Per Call | Parallel Calls | Multimodal |
932
+ | ---------------------------- | ------------------- | -------------- | ---------- |
933
+ | `text-embedding-005` | 2048 | <Check /> | <Cross /> |
934
+ | `gemini-embedding-2` | 2048 | <Check /> | <Check /> |
935
+ | `gemini-embedding-2-preview` | 2048 | <Check /> | <Check /> |
953
936
 
954
937
  <Note>
955
938
  The table above lists popular models. You can also pass any available provider
@@ -1213,11 +1196,11 @@ const { image } = await generateImage({
1213
1196
 
1214
1197
  ##### Gemini Image Model Capabilities
1215
1198
 
1216
- | Model | Image Generation | Image Editing | Aspect Ratios |
1217
- | -------------------------------- | ------------------- | ------------------- | --------------------------------------------------- |
1218
- | `gemini-3.1-flash-image-preview` | <Check size={18} /> | <Check size={18} /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1219
- | `gemini-3-pro-image-preview` | <Check size={18} /> | <Check size={18} /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1220
- | `gemini-2.5-flash-image` | <Check size={18} /> | <Check size={18} /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1199
+ | Model | Image Generation | Image Editing | Aspect Ratios |
1200
+ | -------------------------------- | ---------------- | ------------- | --------------------------------------------------- |
1201
+ | `gemini-3.1-flash-image-preview` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1202
+ | `gemini-3-pro-image-preview` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1203
+ | `gemini-2.5-flash-image` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1221
1204
 
1222
1205
  <Note>
1223
1206
  `gemini-3-pro-image-preview` supports additional features including up to 14
@@ -1405,12 +1388,12 @@ rate is reported in `result.providerMetadata.google.sampleRate`.
1405
1388
 
1406
1389
  #### Speech Model Capabilities
1407
1390
 
1408
- | Model | Multi-speaker | Style via instructions |
1409
- | ----------------------------------- | ------------------- | ---------------------- |
1410
- | `gemini-2.5-flash-tts` | <Check size={18} /> | <Check size={18} /> |
1411
- | `gemini-2.5-pro-tts` | <Check size={18} /> | <Check size={18} /> |
1412
- | `gemini-2.5-flash-lite-preview-tts` | <Check size={18} /> | <Check size={18} /> |
1413
- | `gemini-3.1-flash-tts-preview` | <Check size={18} /> | <Check size={18} /> |
1391
+ | Model | Multi-speaker | Style via instructions |
1392
+ | ----------------------------------- | ------------- | ---------------------- |
1393
+ | `gemini-2.5-flash-tts` | <Check /> | <Check /> |
1394
+ | `gemini-2.5-pro-tts` | <Check /> | <Check /> |
1395
+ | `gemini-2.5-flash-lite-preview-tts` | <Check /> | <Check /> |
1396
+ | `gemini-3.1-flash-tts-preview` | <Check /> | <Check /> |
1414
1397
 
1415
1398
  ### Transcription Models
1416
1399
 
@@ -1982,15 +1965,15 @@ These tools can be used in conjunction with supported Claude models to enable mo
1982
1965
  The latest Anthropic model list on Vertex AI is available [here](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude#model-list).
1983
1966
  See also [Anthropic Model Comparison](https://docs.anthropic.com/en/docs/about-claude/models#model-comparison).
1984
1967
 
1985
- | Model | Image Input | Object Generation | Tool Usage | Tool Streaming | Computer Use |
1986
- | ------------------------------- | ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
1987
- | `claude-3-7-sonnet@20250219` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1988
- | `claude-3-5-sonnet-v2@20241022` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1989
- | `claude-3-5-sonnet@20240620` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Cross size={18} /> |
1990
- | `claude-3-5-haiku@20241022` | <Cross size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Cross size={18} /> |
1991
- | `claude-3-sonnet@20240229` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Cross size={18} /> |
1992
- | `claude-3-haiku@20240307` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Cross size={18} /> |
1993
- | `claude-3-opus@20240229` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Cross size={18} /> |
1968
+ | Model | Image Input | Object Generation | Tool Usage | Tool Streaming | Computer Use |
1969
+ | ------------------------------- | ----------- | ----------------- | ---------- | -------------- | ------------ |
1970
+ | `claude-3-7-sonnet@20250219` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1971
+ | `claude-3-5-sonnet-v2@20241022` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1972
+ | `claude-3-5-sonnet@20240620` | <Check /> | <Check /> | <Check /> | <Check /> | <Cross /> |
1973
+ | `claude-3-5-haiku@20241022` | <Cross /> | <Check /> | <Check /> | <Check /> | <Cross /> |
1974
+ | `claude-3-sonnet@20240229` | <Check /> | <Check /> | <Check /> | <Check /> | <Cross /> |
1975
+ | `claude-3-haiku@20240307` | <Check /> | <Check /> | <Check /> | <Check /> | <Cross /> |
1976
+ | `claude-3-opus@20240229` | <Check /> | <Check /> | <Check /> | <Check /> | <Cross /> |
1994
1977
 
1995
1978
  <Note>
1996
1979
  The table above lists popular models. You can also pass any available provider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.12",
3
+ "version": "5.0.14",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -72,11 +72,11 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "google-auth-library": "^10.6.2",
75
- "@ai-sdk/anthropic": "4.0.9",
76
- "@ai-sdk/google": "4.0.9",
77
- "@ai-sdk/openai-compatible": "3.0.5",
78
- "@ai-sdk/provider": "4.0.2",
79
- "@ai-sdk/provider-utils": "5.0.5"
75
+ "@ai-sdk/anthropic": "4.0.11",
76
+ "@ai-sdk/google": "4.0.11",
77
+ "@ai-sdk/openai-compatible": "3.0.7",
78
+ "@ai-sdk/provider": "4.0.3",
79
+ "@ai-sdk/provider-utils": "5.0.7"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@types/node": "22.19.19",