@ai-sdk/amazon-bedrock 5.0.107 → 5.0.109

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.
@@ -4,7 +4,7 @@ let _ai_sdk_provider = require("@ai-sdk/provider");
4
4
  let _ai_sdk_provider_utils = require("@ai-sdk/provider-utils");
5
5
  let aws4fetch = require("aws4fetch");
6
6
  //#region src/version.ts
7
- const VERSION = "5.0.107";
7
+ const VERSION = "5.0.109";
8
8
  //#endregion
9
9
  //#region src/amazon-bedrock-sigv4-fetch.ts
10
10
  /**
@@ -3,7 +3,7 @@ import { InvalidArgumentError, NoSuchModelError } from "@ai-sdk/provider";
3
3
  import { combineHeaders, getRuntimeEnvironmentUserAgent, isValidHostnamePart, loadOptionalSetting, loadSetting, normalizeHeaders, withUserAgentSuffix, withoutTrailingSlash } from "@ai-sdk/provider-utils";
4
4
  import { AwsV4Signer } from "aws4fetch";
5
5
  //#region src/version.ts
6
- const VERSION = "5.0.107";
6
+ const VERSION = "5.0.109";
7
7
  //#endregion
8
8
  //#region src/amazon-bedrock-sigv4-fetch.ts
9
9
  /**
@@ -328,7 +328,7 @@ import { amazonBedrock } from '@ai-sdk/amazon-bedrock';
328
328
  import { generateText } from 'ai';
329
329
 
330
330
  const result = await generateText({
331
- model: amazonBedrock('us.anthropic.claude-haiku-4-5-20251001-v1:0'),
331
+ model: amazonBedrock('us.anthropic.claude-haiku-5-5'),
332
332
  messages: [
333
333
  {
334
334
  role: 'user',
@@ -1823,6 +1823,7 @@ on how to integrate reasoning into your chatbot.
1823
1823
  | `us.anthropic.claude-fable-5-1` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1824
1824
  | `us.anthropic.claude-sonnet-5-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1825
1825
  | `us.anthropic.claude-sonnet-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1826
+ | `us.anthropic.claude-haiku-5-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1826
1827
  | `us.anthropic.claude-fable-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1827
1828
  | `us.anthropic.claude-opus-4-8` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1828
1829
  | `us.anthropic.claude-opus-4-7` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "5.0.107",
3
+ "version": "5.0.109",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -41,10 +41,10 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@ai-sdk/anthropic": "4.0.73",
45
- "@ai-sdk/openai": "4.0.85",
46
- "@ai-sdk/provider": "4.0.23",
47
- "@ai-sdk/provider-utils": "5.0.55",
44
+ "@ai-sdk/anthropic": "4.0.75",
45
+ "@ai-sdk/openai": "4.0.87",
46
+ "@ai-sdk/provider": "4.0.24",
47
+ "@ai-sdk/provider-utils": "5.0.56",
48
48
  "@smithy/eventstream-codec": "^4.3.3",
49
49
  "@smithy/util-utf8": "^4.3.3",
50
50
  "aws4fetch": "^1.0.20"
@@ -36,6 +36,7 @@ const MODELS_WITHOUT_STRICT_TOOL_SUPPORT = [
36
36
  'claude-opus-5',
37
37
  'claude-fable-5',
38
38
  'claude-sonnet-5',
39
+ 'claude-haiku-5-5',
39
40
  ];
40
41
 
41
42
  // Native structured output is unreliable for additional models even though
@@ -9,6 +9,7 @@ export type AmazonBedrockChatModelId =
9
9
  | 'anthropic.claude-instant-v1'
10
10
  | 'anthropic.claude-sonnet-5'
11
11
  | 'anthropic.claude-sonnet-5-5'
12
+ | 'anthropic.claude-haiku-5-5'
12
13
  | 'anthropic.claude-fable-5'
13
14
  | 'anthropic.claude-fable-5-1'
14
15
  | 'anthropic.claude-opus-5'
@@ -64,6 +65,7 @@ export type AmazonBedrockChatModelId =
64
65
  | 'us.anthropic.claude-3-7-sonnet-20250219-v1:0'
65
66
  | 'us.anthropic.claude-sonnet-5'
66
67
  | 'us.anthropic.claude-sonnet-5-5'
68
+ | 'us.anthropic.claude-haiku-5-5'
67
69
  | 'us.anthropic.claude-fable-5'
68
70
  | 'us.anthropic.claude-fable-5-1'
69
71
  | 'us.anthropic.claude-opus-5'
@@ -1,6 +1,7 @@
1
1
  export type AmazonBedrockAnthropicModelId =
2
2
  | 'anthropic.claude-sonnet-5'
3
3
  | 'anthropic.claude-sonnet-5-5'
4
+ | 'anthropic.claude-haiku-5-5'
4
5
  | 'anthropic.claude-fable-5'
5
6
  | 'anthropic.claude-fable-5-1'
6
7
  | 'anthropic.claude-opus-5'
@@ -24,6 +25,7 @@ export type AmazonBedrockAnthropicModelId =
24
25
  | 'anthropic.claude-3-haiku-20240307-v1:0'
25
26
  | 'us.anthropic.claude-sonnet-5'
26
27
  | 'us.anthropic.claude-sonnet-5-5'
28
+ | 'us.anthropic.claude-haiku-5-5'
27
29
  | 'us.anthropic.claude-fable-5'
28
30
  | 'us.anthropic.claude-fable-5-1'
29
31
  | 'us.anthropic.claude-opus-5'