@ai-sdk/google-vertex 5.0.73 → 5.0.75

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,28 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.75
4
+
5
+ ### Patch Changes
6
+
7
+ - 622fa7f: feat(google): add gemini-3.8-flash model
8
+ - Updated dependencies [18ad19c]
9
+ - Updated dependencies [048ce06]
10
+ - Updated dependencies [65397d7]
11
+ - Updated dependencies [622fa7f]
12
+ - @ai-sdk/google@4.0.63
13
+ - @ai-sdk/anthropic@4.0.49
14
+
15
+ ## 5.0.74
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [4d25a08]
20
+ - Updated dependencies [6bcc0f8]
21
+ - @ai-sdk/anthropic@4.0.48
22
+ - @ai-sdk/provider-utils@5.0.36
23
+ - @ai-sdk/google@4.0.62
24
+ - @ai-sdk/openai-compatible@3.0.43
25
+
3
26
  ## 5.0.73
4
27
 
5
28
  ### 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.73" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.75" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -34,7 +34,7 @@ declare class GoogleVertexEmbeddingModel implements EmbeddingModelV4 {
34
34
 
35
35
  type GoogleVertexImageModelId = 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
36
36
 
37
- type GoogleVertexModelId = 'gemini-3.7-flash' | 'gemini-3.6-flash' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-1.5-flash' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gemini-1.0-pro-001' | 'gemini-1.0-pro-vision-001' | 'gemini-1.0-pro' | 'gemini-1.0-pro-002' | 'gemini-2.0-flash-lite-preview-02-05' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-2.0-pro-exp-02-05' | 'gemini-2.0-flash-exp' | (string & {});
37
+ type GoogleVertexModelId = 'gemini-3.8-flash' | 'gemini-3.7-flash' | 'gemini-3.6-flash' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-1.5-flash' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gemini-1.0-pro-001' | 'gemini-1.0-pro-vision-001' | 'gemini-1.0-pro' | 'gemini-1.0-pro-002' | 'gemini-2.0-flash-lite-preview-02-05' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-2.0-pro-exp-02-05' | 'gemini-2.0-flash-exp' | (string & {});
38
38
 
39
39
  declare const googleVertexTools: {
40
40
  googleSearch: _ai_sdk_provider_utils.ProviderExecutedToolFactory<{}, {}, {
@@ -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.73" : "0.0.0-test";
21
+ var VERSION = true ? "5.0.75" : "0.0.0-test";
22
22
 
23
23
  // src/google-vertex-embedding-model.ts
24
24
  import {
package/dist/index.d.ts CHANGED
@@ -83,7 +83,7 @@ declare class GoogleVertexEmbeddingModel implements EmbeddingModelV4 {
83
83
 
84
84
  type GoogleVertexImageModelId = 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
85
85
 
86
- type GoogleVertexModelId = 'gemini-3.7-flash' | 'gemini-3.6-flash' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-1.5-flash' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gemini-1.0-pro-001' | 'gemini-1.0-pro-vision-001' | 'gemini-1.0-pro' | 'gemini-1.0-pro-002' | 'gemini-2.0-flash-lite-preview-02-05' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-2.0-pro-exp-02-05' | 'gemini-2.0-flash-exp' | (string & {});
86
+ type GoogleVertexModelId = 'gemini-3.8-flash' | 'gemini-3.7-flash' | 'gemini-3.6-flash' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-1.5-flash' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gemini-1.0-pro-001' | 'gemini-1.0-pro-vision-001' | 'gemini-1.0-pro' | 'gemini-1.0-pro-002' | 'gemini-2.0-flash-lite-preview-02-05' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-2.0-pro-exp-02-05' | 'gemini-2.0-flash-exp' | (string & {});
87
87
 
88
88
  declare const googleVertexTools: {
89
89
  googleSearch: _ai_sdk_provider_utils.ProviderExecutedToolFactory<{}, {}, {
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.73" : "0.0.0-test";
36
+ var VERSION = true ? "5.0.75" : "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.73" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.75" : "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.73" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.75" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -238,10 +238,10 @@ const googleVertex = createGoogleVertex({
238
238
  ### Language Models
239
239
 
240
240
  You can create models that call the Vertex API using the provider instance.
241
- The first argument is the model id, e.g. `gemini-3.7-flash`.
241
+ The first argument is the model id, e.g. `gemini-3.8-flash`.
242
242
 
243
243
  ```ts
244
- const model = googleVertex('gemini-3.7-flash');
244
+ const model = googleVertex('gemini-3.8-flash');
245
245
  ```
246
246
 
247
247
  <Note>
@@ -516,7 +516,7 @@ import { googleVertex } from '@ai-sdk/google-vertex';
516
516
  import { generateText } from 'ai';
517
517
 
518
518
  const result = await generateText({
519
- model: googleVertex('gemini-3.7-flash'),
519
+ model: googleVertex('gemini-3.8-flash'),
520
520
  tools: {
521
521
  enterprise_web_search: googleVertex.tools.enterpriseWebSearch({}),
522
522
  },
@@ -534,7 +534,7 @@ import { type GoogleLanguageModelOptions } from '@ai-sdk/google';
534
534
  import { generateText } from 'ai';
535
535
 
536
536
  const result = await generateText({
537
- model: googleVertex('gemini-3.7-flash'),
537
+ model: googleVertex('gemini-3.8-flash'),
538
538
  tools: {
539
539
  google_maps: googleVertex.tools.googleMaps({}),
540
540
  },
@@ -907,6 +907,7 @@ The following Zod features are known to not work with Google Vertex:
907
907
 
908
908
  | Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
909
909
  | ----------------------- | ----------- | ----------------- | ---------- | -------------- |
910
+ | `gemini-3.8-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
910
911
  | `gemini-3.7-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
911
912
  | `gemini-3.6-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
912
913
  | `gemini-3.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.73",
3
+ "version": "5.0.75",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -71,11 +71,11 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@ai-sdk/anthropic": "4.0.47",
75
- "@ai-sdk/google": "4.0.61",
76
- "@ai-sdk/openai-compatible": "3.0.42",
74
+ "@ai-sdk/anthropic": "4.0.49",
75
+ "@ai-sdk/google": "4.0.63",
76
+ "@ai-sdk/openai-compatible": "3.0.43",
77
77
  "@ai-sdk/provider": "4.0.10",
78
- "@ai-sdk/provider-utils": "5.0.35",
78
+ "@ai-sdk/provider-utils": "5.0.36",
79
79
  "google-auth-library": "^10.6.2"
80
80
  },
81
81
  "devDependencies": {
@@ -3,6 +3,7 @@
3
3
  // https://console.cloud.google.com/vertex-ai/studio/
4
4
  export type GoogleVertexModelId =
5
5
  // Stable models
6
+ | 'gemini-3.8-flash'
6
7
  | 'gemini-3.7-flash'
7
8
  | 'gemini-3.6-flash'
8
9
  | 'gemini-3.5-flash'