@ai-sdk/google-vertex 5.0.13 → 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 +14 -0
- package/dist/anthropic/edge/index.js +1 -1
- package/dist/edge/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/maas/edge/index.js +1 -1
- package/dist/xai/edge/index.js +1 -1
- package/docs/16-google-vertex.mdx +33 -50
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
3
17
|
## 5.0.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/edge/index.js
CHANGED
package/dist/index.js
CHANGED
package/dist/maas/edge/index.js
CHANGED
package/dist/xai/edge/index.js
CHANGED
|
@@ -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
|
-
<
|
|
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
|
|
874
|
-
| ---------------------- |
|
|
875
|
-
| `gemini-3.5-flash` | <Check
|
|
876
|
-
| `gemini-3-pro-preview` | <Check
|
|
877
|
-
| `gemini-2.5-pro` | <Check
|
|
878
|
-
| `gemini-2.5-flash` | <Check
|
|
879
|
-
| `gemini-2.0-flash-001` | <Check
|
|
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
|
|
949
|
-
| ---------------------------- | ------------------- |
|
|
950
|
-
| `text-embedding-005` | 2048 | <Check
|
|
951
|
-
| `gemini-embedding-2` | 2048 | <Check
|
|
952
|
-
| `gemini-embedding-2-preview` | 2048 | <Check
|
|
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
|
|
1217
|
-
| -------------------------------- |
|
|
1218
|
-
| `gemini-3.1-flash-image-preview` | <Check
|
|
1219
|
-
| `gemini-3-pro-image-preview` | <Check
|
|
1220
|
-
| `gemini-2.5-flash-image` | <Check
|
|
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
|
|
1409
|
-
| ----------------------------------- |
|
|
1410
|
-
| `gemini-2.5-flash-tts` | <Check
|
|
1411
|
-
| `gemini-2.5-pro-tts` | <Check
|
|
1412
|
-
| `gemini-2.5-flash-lite-preview-tts` | <Check
|
|
1413
|
-
| `gemini-3.1-flash-tts-preview` | <Check
|
|
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
|
|
1986
|
-
| ------------------------------- |
|
|
1987
|
-
| `claude-3-7-sonnet@20250219` | <Check
|
|
1988
|
-
| `claude-3-5-sonnet-v2@20241022` | <Check
|
|
1989
|
-
| `claude-3-5-sonnet@20240620` | <Check
|
|
1990
|
-
| `claude-3-5-haiku@20241022` | <Cross
|
|
1991
|
-
| `claude-3-sonnet@20240229` | <Check
|
|
1992
|
-
| `claude-3-haiku@20240307` | <Check
|
|
1993
|
-
| `claude-3-opus@20240229` | <Check
|
|
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.
|
|
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.
|
|
76
|
-
"@ai-sdk/google": "4.0.
|
|
77
|
-
"@ai-sdk/openai-compatible": "3.0.
|
|
78
|
-
"@ai-sdk/provider": "4.0.
|
|
79
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
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",
|