@ai-sdk/amazon-bedrock 5.0.5 → 5.0.7

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.
@@ -35,7 +35,7 @@ var import_provider_utils = require("@ai-sdk/provider-utils");
35
35
  var import_aws4fetch = require("aws4fetch");
36
36
 
37
37
  // src/version.ts
38
- var VERSION = true ? "5.0.5" : "0.0.0-test";
38
+ var VERSION = true ? "5.0.7" : "0.0.0-test";
39
39
 
40
40
  // src/amazon-bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
@@ -23,7 +23,7 @@ import {
23
23
  import { AwsV4Signer } from "aws4fetch";
24
24
 
25
25
  // src/version.ts
26
- var VERSION = true ? "5.0.5" : "0.0.0-test";
26
+ var VERSION = true ? "5.0.7" : "0.0.0-test";
27
27
 
28
28
  // src/amazon-bedrock-sigv4-fetch.ts
29
29
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
@@ -1585,6 +1585,7 @@ const result = await generateText({
1585
1585
 
1586
1586
  Anthropic has reasoning support for Claude 3.7 and Claude 4 models on Bedrock, including:
1587
1587
 
1588
+ - `us.anthropic.claude-sonnet-5`
1588
1589
  - `us.anthropic.claude-fable-5`
1589
1590
  - `us.anthropic.claude-opus-4-8`
1590
1591
  - `us.anthropic.claude-opus-4-7`
@@ -1624,6 +1625,7 @@ on how to integrate reasoning into your chatbot.
1624
1625
 
1625
1626
  | Model | Image Input | Object Generation | Tool Usage | Computer Use | Reasoning |
1626
1627
  | ---------------------------------------------- | ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
1628
+ | `us.anthropic.claude-sonnet-5` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1627
1629
  | `us.anthropic.claude-fable-5` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1628
1630
  | `us.anthropic.claude-opus-4-8` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1629
1631
  | `us.anthropic.claude-opus-4-7` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "5.0.5",
3
+ "version": "5.0.7",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -44,10 +44,10 @@
44
44
  "@smithy/eventstream-codec": "^4.3.3",
45
45
  "@smithy/util-utf8": "^4.3.3",
46
46
  "aws4fetch": "^1.0.20",
47
- "@ai-sdk/anthropic": "4.0.3",
48
- "@ai-sdk/openai": "4.0.4",
49
- "@ai-sdk/provider-utils": "5.0.2",
50
- "@ai-sdk/provider": "4.0.1"
47
+ "@ai-sdk/anthropic": "4.0.5",
48
+ "@ai-sdk/openai": "4.0.5",
49
+ "@ai-sdk/provider": "4.0.1",
50
+ "@ai-sdk/provider-utils": "5.0.3"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "22.19.19",
@@ -7,6 +7,7 @@ export type AmazonBedrockChatModelId =
7
7
  | 'anthropic.claude-v2'
8
8
  | 'anthropic.claude-v2:1'
9
9
  | 'anthropic.claude-instant-v1'
10
+ | 'anthropic.claude-sonnet-5'
10
11
  | 'anthropic.claude-fable-5'
11
12
  | 'anthropic.claude-opus-4-8'
12
13
  | 'anthropic.claude-opus-4-7'
@@ -57,6 +58,7 @@ export type AmazonBedrockChatModelId =
57
58
  | 'us.anthropic.claude-3-5-haiku-20241022-v1:0'
58
59
  | 'us.anthropic.claude-3-5-sonnet-20241022-v2:0'
59
60
  | 'us.anthropic.claude-3-7-sonnet-20250219-v1:0'
61
+ | 'us.anthropic.claude-sonnet-5'
60
62
  | 'us.anthropic.claude-fable-5'
61
63
  | 'us.anthropic.claude-opus-4-8'
62
64
  | 'us.anthropic.claude-opus-4-7'
@@ -1,4 +1,5 @@
1
1
  export type AmazonBedrockAnthropicModelId =
2
+ | 'anthropic.claude-sonnet-5'
2
3
  | 'anthropic.claude-fable-5'
3
4
  | 'anthropic.claude-opus-4-8'
4
5
  | 'anthropic.claude-opus-4-7'
@@ -17,6 +18,7 @@ export type AmazonBedrockAnthropicModelId =
17
18
  | 'anthropic.claude-3-opus-20240229-v1:0'
18
19
  | 'anthropic.claude-3-sonnet-20240229-v1:0'
19
20
  | 'anthropic.claude-3-haiku-20240307-v1:0'
21
+ | 'us.anthropic.claude-sonnet-5'
20
22
  | 'us.anthropic.claude-fable-5'
21
23
  | 'us.anthropic.claude-opus-4-8'
22
24
  | 'us.anthropic.claude-opus-4-7'
@@ -332,11 +332,12 @@ export function createAmazonBedrockAnthropic(
332
332
  // Bedrock Anthropic doesn't support URL sources, force download and base64 conversion
333
333
  supportedUrls: () => ({}),
334
334
  // native structured output via output_config.format is supported on Bedrock
335
- // Bedrock rejects `output_config.format` for `claude-opus-4-7`, `claude-opus-4-8`, and `claude-fable-5`
335
+ // Bedrock rejects `output_config.format` for `claude-opus-4-7`, `claude-opus-4-8`, `claude-fable-5`, and `claude-sonnet-5`
336
336
  supportsNativeStructuredOutput:
337
337
  !modelId.includes('claude-opus-4-7') &&
338
338
  !modelId.includes('claude-opus-4-8') &&
339
- !modelId.includes('claude-fable-5'),
339
+ !modelId.includes('claude-fable-5') &&
340
+ !modelId.includes('claude-sonnet-5'),
340
341
  });
341
342
 
342
343
  const provider = function (modelId: AmazonBedrockAnthropicModelId) {