@ai-sdk/google-vertex 5.0.101 → 5.0.103
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 +31 -0
- package/dist/anthropic/edge/index.js +1 -1
- package/dist/edge/index.d.ts +2 -2
- package/dist/edge/index.d.ts.map +1 -1
- package/dist/edge/index.js +3 -2
- package/dist/edge/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/maas/edge/index.js +1 -1
- package/dist/xai/edge/index.js +1 -1
- package/docs/16-google-vertex.mdx +18 -16
- package/package.json +8 -8
- package/src/google-vertex-image-model.ts +1 -0
- package/src/google-vertex-image-settings.ts +1 -0
- package/src/google-vertex-options.ts +1 -0
|
@@ -950,17 +950,18 @@ The following Zod features are known to not work with Google Vertex:
|
|
|
950
950
|
|
|
951
951
|
### Model Capabilities
|
|
952
952
|
|
|
953
|
-
| Model
|
|
954
|
-
|
|
|
955
|
-
| `gemini-
|
|
956
|
-
| `gemini-3.
|
|
957
|
-
| `gemini-3.
|
|
958
|
-
| `gemini-3.
|
|
959
|
-
| `gemini-3.5-flash
|
|
960
|
-
| `gemini-3-
|
|
961
|
-
| `gemini-
|
|
962
|
-
| `gemini-2.5-
|
|
963
|
-
| `gemini-2.
|
|
953
|
+
| Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
|
|
954
|
+
| ------------------------ | ----------- | ----------------- | ---------- | -------------- |
|
|
955
|
+
| `gemini-nano-banana-2.1` | <Check /> | <Cross /> | <Cross /> | <Cross /> |
|
|
956
|
+
| `gemini-3.8-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
957
|
+
| `gemini-3.7-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
958
|
+
| `gemini-3.6-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
959
|
+
| `gemini-3.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
960
|
+
| `gemini-3.5-flash-lite` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
961
|
+
| `gemini-3-pro-preview` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
962
|
+
| `gemini-2.5-pro` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
963
|
+
| `gemini-2.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
964
|
+
| `gemini-2.0-flash-001` | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
964
965
|
|
|
965
966
|
<Note>
|
|
966
967
|
The table above lists popular models. Please see the [Google Vertex AI
|
|
@@ -1100,11 +1101,12 @@ const { image } = await generateImage({
|
|
|
1100
1101
|
|
|
1101
1102
|
##### Gemini Image Model Capabilities
|
|
1102
1103
|
|
|
1103
|
-
| Model | Image Generation | Image Editing | Aspect Ratios
|
|
1104
|
-
| -------------------------------- | ---------------- | ------------- |
|
|
1105
|
-
| `gemini-
|
|
1106
|
-
| `gemini-3-
|
|
1107
|
-
| `gemini-
|
|
1104
|
+
| Model | Image Generation | Image Editing | Aspect Ratios |
|
|
1105
|
+
| -------------------------------- | ---------------- | ------------- | ----------------------------------------------------------------------- |
|
|
1106
|
+
| `gemini-nano-banana-2.1` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:8, 8:1, 1:4, 4:1 |
|
|
1107
|
+
| `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 |
|
|
1108
|
+
| `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 |
|
|
1109
|
+
| `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 |
|
|
1108
1110
|
|
|
1109
1111
|
<Note>
|
|
1110
1112
|
`gemini-3-pro-image-preview` supports additional features including up to 14
|
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.103",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -71,19 +71,19 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@ai-sdk/anthropic": "4.0.
|
|
75
|
-
"@ai-sdk/google": "4.0.
|
|
76
|
-
"@ai-sdk/openai-compatible": "3.0.
|
|
77
|
-
"@ai-sdk/provider": "4.0.
|
|
78
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
74
|
+
"@ai-sdk/anthropic": "4.0.73",
|
|
75
|
+
"@ai-sdk/google": "4.0.89",
|
|
76
|
+
"@ai-sdk/openai-compatible": "3.0.64",
|
|
77
|
+
"@ai-sdk/provider": "4.0.23",
|
|
78
|
+
"@ai-sdk/provider-utils": "5.0.55",
|
|
79
79
|
"google-auth-library": "^10.6.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@ai-sdk/test-server": "2.0.
|
|
82
|
+
"@ai-sdk/test-server": "2.0.4",
|
|
83
83
|
"@types/node": "22.19.19",
|
|
84
84
|
"@vercel/ai-tsconfig": "0.0.0",
|
|
85
85
|
"tsdown": "^0.23.0",
|
|
86
|
-
"typescript": "
|
|
86
|
+
"typescript": "6.0.3",
|
|
87
87
|
"zod": "3.25.76"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
@@ -30,6 +30,7 @@ const googleVertexImageModelsWithFileInputSupport = new Set<string>([
|
|
|
30
30
|
'gemini-2.5-flash-image',
|
|
31
31
|
'gemini-3-pro-image-preview',
|
|
32
32
|
'gemini-3.1-flash-image-preview',
|
|
33
|
+
'gemini-nano-banana-2.1',
|
|
33
34
|
]);
|
|
34
35
|
|
|
35
36
|
export class GoogleVertexImageModel implements ImageModelV4 {
|