@ai-sdk/google-vertex 4.0.207 → 4.0.209

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,32 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 4.0.209
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a9cea74]
8
+ - Updated dependencies [a9cea74]
9
+ - Updated dependencies [a9cea74]
10
+ - @ai-sdk/google@3.0.130
11
+ - @ai-sdk/provider-utils@4.0.57
12
+ - @ai-sdk/anthropic@3.0.126
13
+ - @ai-sdk/openai-compatible@2.0.81
14
+
15
+ ## 4.0.208
16
+
17
+ ### Patch Changes
18
+
19
+ - 358683e: feat(anthropic): add Claude Sonnet 5.5 support
20
+
21
+ - add the `claude-sonnet-5-5` model ID to `@ai-sdk/anthropic` and `@ai-sdk/google-vertex`, `anthropic.claude-sonnet-5-5` and `us.anthropic.claude-sonnet-5-5` to `@ai-sdk/amazon-bedrock`, and `anthropic/claude-sonnet-5.5` to `@ai-sdk/gateway`
22
+ - add the `between_tools` thinking type (`thinking: { type: 'between_tools' }`), the lowest thinking setting on `claude-sonnet-5-5`; `xhigh` and `max` effort are lowered to `high` with a warning because the API rejects them with `between_tools`
23
+ - `claude-sonnet-5-5` rejects disabled thinking: `thinking: { type: 'disabled' }` is replaced with `between_tools` thinking (with a warning), and budget-based thinking is converted to adaptive thinking
24
+ - `claude-sonnet-5-5` rejects forced tool use: `required` and named tool choices fall back to `auto`, and `structuredOutputMode: 'jsonTool'` falls back to native structured outputs, each with a warning
25
+
26
+ - Updated dependencies [358683e]
27
+ - Updated dependencies [eeabdce]
28
+ - @ai-sdk/anthropic@3.0.125
29
+
3
30
  ## 4.0.207
4
31
 
5
32
  ### Patch Changes
@@ -20,7 +20,7 @@ interface GoogleCredentials {
20
20
  privateKeyId?: string;
21
21
  }
22
22
 
23
- type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
23
+ type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
24
24
 
25
25
  /**
26
26
  * Tools supported by Google Vertex Anthropic.
@@ -20,7 +20,7 @@ interface GoogleCredentials {
20
20
  privateKeyId?: string;
21
21
  }
22
22
 
23
- type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
23
+ type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
24
24
 
25
25
  /**
26
26
  * Tools supported by Google Vertex Anthropic.
@@ -32,7 +32,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
32
32
  var import_provider_utils = require("@ai-sdk/provider-utils");
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "4.0.207" : "0.0.0-test";
35
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
36
36
 
37
37
  // src/edge/google-vertex-auth-edge.ts
38
38
  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 ? "4.0.207" : "0.0.0-test";
13
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -3,7 +3,7 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
3
  import { Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
4
4
  import { ProviderV3, LanguageModelV3 } from '@ai-sdk/provider';
5
5
 
6
- type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
6
+ type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
7
7
 
8
8
  /**
9
9
  * Tools supported by Google Vertex Anthropic.
@@ -3,7 +3,7 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
3
  import { Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
4
4
  import { ProviderV3, LanguageModelV3 } from '@ai-sdk/provider';
5
5
 
6
- type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
6
+ type GoogleVertexAnthropicMessagesModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-5-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
7
7
 
8
8
  /**
9
9
  * Tools supported by Google Vertex Anthropic.
@@ -33,7 +33,7 @@ var import_internal3 = require("@ai-sdk/google/internal");
33
33
  var import_provider_utils7 = require("@ai-sdk/provider-utils");
34
34
 
35
35
  // src/version.ts
36
- var VERSION = true ? "4.0.207" : "0.0.0-test";
36
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
37
37
 
38
38
  // src/google-vertex-embedding-model.ts
39
39
  var import_provider = require("@ai-sdk/provider");
@@ -17,7 +17,7 @@ import {
17
17
  } from "@ai-sdk/provider-utils";
18
18
 
19
19
  // src/version.ts
20
- var VERSION = true ? "4.0.207" : "0.0.0-test";
20
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
21
21
 
22
22
  // src/google-vertex-embedding-model.ts
23
23
  import {
package/dist/index.js CHANGED
@@ -271,7 +271,7 @@ var import_internal3 = require("@ai-sdk/google/internal");
271
271
  var import_provider_utils7 = require("@ai-sdk/provider-utils");
272
272
 
273
273
  // src/version.ts
274
- var VERSION = true ? "4.0.207" : "0.0.0-test";
274
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
275
275
 
276
276
  // src/google-vertex-embedding-model.ts
277
277
  var import_provider2 = require("@ai-sdk/provider");
package/dist/index.mjs CHANGED
@@ -262,7 +262,7 @@ import {
262
262
  } from "@ai-sdk/provider-utils";
263
263
 
264
264
  // src/version.ts
265
- var VERSION = true ? "4.0.207" : "0.0.0-test";
265
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
266
266
 
267
267
  // src/google-vertex-embedding-model.ts
268
268
  import {
@@ -32,7 +32,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
32
32
  var import_provider_utils = require("@ai-sdk/provider-utils");
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "4.0.207" : "0.0.0-test";
35
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
36
36
 
37
37
  // src/edge/google-vertex-auth-edge.ts
38
38
  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 ? "4.0.207" : "0.0.0-test";
13
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -32,7 +32,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
32
32
  var import_provider_utils = require("@ai-sdk/provider-utils");
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "4.0.207" : "0.0.0-test";
35
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
36
36
 
37
37
  // src/edge/google-vertex-auth-edge.ts
38
38
  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 ? "4.0.207" : "0.0.0-test";
13
+ var VERSION = true ? "4.0.209" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "4.0.207",
3
+ "version": "4.0.209",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -72,11 +72,11 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "google-auth-library": "^10.5.0",
75
- "@ai-sdk/anthropic": "3.0.124",
76
- "@ai-sdk/google": "3.0.129",
77
- "@ai-sdk/openai-compatible": "2.0.80",
75
+ "@ai-sdk/anthropic": "3.0.126",
76
+ "@ai-sdk/google": "3.0.130",
77
+ "@ai-sdk/openai-compatible": "2.0.81",
78
78
  "@ai-sdk/provider": "3.0.18",
79
- "@ai-sdk/provider-utils": "4.0.56"
79
+ "@ai-sdk/provider-utils": "4.0.57"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@types/node": "20.17.24",
@@ -1,6 +1,7 @@
1
1
  // https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude
2
2
  export type GoogleVertexAnthropicMessagesModelId =
3
3
  | 'claude-sonnet-5'
4
+ | 'claude-sonnet-5-5'
4
5
  | 'claude-fable-5'
5
6
  | 'claude-opus-5'
6
7
  | 'claude-opus-5-5'