@ai-sdk/google-vertex 5.0.104 → 5.0.106

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,26 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.106
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [32ff7ad]
8
+ - @ai-sdk/google@4.0.91
9
+
10
+ ## 5.0.105
11
+
12
+ ### Patch Changes
13
+
14
+ - 866e884: feat(anthropic): add Claude Haiku 5.5 support
15
+
16
+ - add the `claude-haiku-5-5` model ID to `@ai-sdk/anthropic` and `@ai-sdk/google-vertex`, `anthropic.claude-haiku-5-5` and `us.anthropic.claude-haiku-5-5` to `@ai-sdk/amazon-bedrock`, and `anthropic/claude-haiku-5.5` to `@ai-sdk/gateway`
17
+ - recognize `claude-haiku-5-5` as a known model with a 128k max output token limit, adaptive thinking, and all five effort levels; thinking can be disabled up to `high` effort, and `xhigh` and `max` are lowered to `high` with a warning when thinking is disabled
18
+ - `claude-haiku-5-5` does not support thinking token budgets: `thinking: { type: 'enabled', budgetTokens }` is converted to adaptive thinking with a warning
19
+ - use the JSON tool fallback for structured output on Amazon Bedrock for `claude-haiku-5-5`
20
+
21
+ - Updated dependencies [866e884]
22
+ - @ai-sdk/anthropic@4.0.75
23
+
3
24
  ## 5.0.104
4
25
 
5
26
  ### Patch Changes
@@ -21,7 +21,7 @@ interface GoogleCredentials {
21
21
  }
22
22
  //#endregion
23
23
  //#region src/anthropic/google-vertex-anthropic-options.d.ts
24
- type GoogleVertexAnthropicModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-fable-5' | 'claude-fable-5-1' | '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
+ type GoogleVertexAnthropicModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-haiku-5-5' | 'claude-fable-5' | 'claude-fable-5-1' | '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 & {});
25
25
  //#endregion
26
26
  //#region src/anthropic/google-vertex-anthropic-provider.d.ts
27
27
  type GoogleVertexAnthropicTools = Pick<typeof anthropicTools, 'bash_20241022' | 'bash_20250124' | 'textEditor_20241022' | 'textEditor_20250124' | 'textEditor_20250429' | 'textEditor_20250728' | 'computer_20241022' | 'webSearch_20250305' | 'toolSearchRegex_20251119' | 'toolSearchBm25_20251119'>;
@@ -2,7 +2,7 @@ import { getRuntimeEnvironmentUserAgent, isValidHostnamePart, loadOptionalSettin
2
2
  import { InvalidArgumentError, NoSuchModelError } from "@ai-sdk/provider";
3
3
  import { AnthropicLanguageModel, anthropicTools } from "@ai-sdk/anthropic/internal";
4
4
  //#region src/version.ts
5
- const VERSION = "5.0.104";
5
+ const VERSION = "5.0.106";
6
6
  //#endregion
7
7
  //#region src/edge/google-vertex-auth-edge.ts
8
8
  const loadCredentials = async () => {
@@ -3,7 +3,7 @@ import { GoogleAuthOptions } from "google-auth-library";
3
3
  import { LanguageModelV4, ProviderV4 } from "@ai-sdk/provider";
4
4
  import { anthropicTools } from "@ai-sdk/anthropic/internal";
5
5
  //#region src/anthropic/google-vertex-anthropic-options.d.ts
6
- type GoogleVertexAnthropicModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-fable-5' | 'claude-fable-5-1' | '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 GoogleVertexAnthropicModelId = 'claude-sonnet-5' | 'claude-sonnet-5-5' | 'claude-haiku-5-5' | 'claude-fable-5' | 'claude-fable-5-1' | '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
  //#endregion
8
8
  //#region src/anthropic/google-vertex-anthropic-provider.d.ts
9
9
  type GoogleVertexAnthropicTools = Pick<typeof anthropicTools, 'bash_20241022' | 'bash_20250124' | 'textEditor_20241022' | 'textEditor_20250124' | 'textEditor_20250429' | 'textEditor_20250728' | 'computer_20241022' | 'webSearch_20250305' | 'toolSearchRegex_20251119' | 'toolSearchBm25_20251119'>;
@@ -3,7 +3,7 @@ import { GoogleInteractionsLanguageModel, GoogleLanguageModel, GoogleSpeechModel
3
3
  import { AISDKError, InvalidArgumentError, TooManyEmbeddingValuesForCallError } from "@ai-sdk/provider";
4
4
  import { z } from "zod/v4";
5
5
  //#region src/version.ts
6
- const VERSION = "5.0.104";
6
+ const VERSION = "5.0.106";
7
7
  //#endregion
8
8
  //#region src/google-vertex-error.ts
9
9
  const googleVertexErrorDataSchema = z.object({ error: z.object({
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ function createAuthTokenGenerator(options) {
15
15
  }
16
16
  //#endregion
17
17
  //#region src/version.ts
18
- const VERSION = "5.0.104";
18
+ const VERSION = "5.0.106";
19
19
  //#endregion
20
20
  //#region src/google-vertex-error.ts
21
21
  const googleVertexErrorDataSchema = z.object({ error: z.object({
@@ -2,7 +2,7 @@ import { getRuntimeEnvironmentUserAgent, isValidHostnamePart, loadOptionalSettin
2
2
  import { InvalidArgumentError } from "@ai-sdk/provider";
3
3
  import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
4
4
  //#region src/version.ts
5
- const VERSION = "5.0.104";
5
+ const VERSION = "5.0.106";
6
6
  //#endregion
7
7
  //#region src/edge/google-vertex-auth-edge.ts
8
8
  const loadCredentials = async () => {
@@ -2,7 +2,7 @@ import { getRuntimeEnvironmentUserAgent, loadOptionalSetting, loadSetting, resol
2
2
  import { NoSuchModelError } from "@ai-sdk/provider";
3
3
  import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
4
4
  //#region src/version.ts
5
- const VERSION = "5.0.104";
5
+ const VERSION = "5.0.106";
6
6
  //#endregion
7
7
  //#region src/edge/google-vertex-auth-edge.ts
8
8
  const loadCredentials = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.104",
3
+ "version": "5.0.106",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -71,8 +71,8 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@ai-sdk/anthropic": "4.0.74",
75
- "@ai-sdk/google": "4.0.90",
74
+ "@ai-sdk/anthropic": "4.0.75",
75
+ "@ai-sdk/google": "4.0.91",
76
76
  "@ai-sdk/openai-compatible": "3.0.65",
77
77
  "@ai-sdk/provider": "4.0.24",
78
78
  "@ai-sdk/provider-utils": "5.0.56",
@@ -2,6 +2,7 @@
2
2
  export type GoogleVertexAnthropicModelId =
3
3
  | 'claude-sonnet-5'
4
4
  | 'claude-sonnet-5-5'
5
+ | 'claude-haiku-5-5'
5
6
  | 'claude-fable-5'
6
7
  | 'claude-fable-5-1'
7
8
  | 'claude-opus-5'