@ai-sdk/amazon-bedrock 5.0.93 → 5.0.94

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,14 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 5.0.94
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [154221f]
8
+ - Updated dependencies [ca31b89]
9
+ - @ai-sdk/anthropic@4.0.63
10
+ - @ai-sdk/openai@4.0.75
11
+
3
12
  ## 5.0.93
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -50,7 +50,7 @@ import { bedrock } from '@ai-sdk/amazon-bedrock';
50
50
  import { generateText } from 'ai';
51
51
 
52
52
  const { text } = await generateText({
53
- model: bedrock('anthropic.claude-3-haiku-20240307-v1:0'),
53
+ model: bedrock('us.anthropic.claude-haiku-4-5-20251001-v1:0'),
54
54
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
55
55
  // API key is automatically loaded from AWS_BEARER_TOKEN_BEDROCK
56
56
  });
@@ -70,7 +70,7 @@ const bedrockWithApiKey = bedrock.withSettings({
70
70
  });
71
71
 
72
72
  const { text } = await generateText({
73
- model: bedrockWithApiKey('anthropic.claude-3-haiku-20240307-v1:0'),
73
+ model: bedrockWithApiKey('us.anthropic.claude-haiku-4-5-20251001-v1:0'),
74
74
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
75
75
  });
76
76
  ```
@@ -85,7 +85,7 @@ import { generateText } from 'ai';
85
85
 
86
86
  // Uses AWS credentials from environment variables or AWS credential chain
87
87
  const { text } = await generateText({
88
- model: bedrock('anthropic.claude-3-haiku-20240307-v1:0'),
88
+ model: bedrock('us.anthropic.claude-haiku-4-5-20251001-v1:0'),
89
89
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
90
90
  });
91
91
  ```
@@ -23,7 +23,7 @@ import {
23
23
  import { AwsV4Signer } from "aws4fetch";
24
24
 
25
25
  // src/version.ts
26
- var VERSION = true ? "5.0.93" : "0.0.0-test";
26
+ var VERSION = true ? "5.0.94" : "0.0.0-test";
27
27
 
28
28
  // src/amazon-bedrock-sigv4-fetch.ts
29
29
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
package/dist/index.js CHANGED
@@ -2887,7 +2887,7 @@ import {
2887
2887
  import { AwsV4Signer } from "aws4fetch";
2888
2888
 
2889
2889
  // src/version.ts
2890
- var VERSION = true ? "5.0.93" : "0.0.0-test";
2890
+ var VERSION = true ? "5.0.94" : "0.0.0-test";
2891
2891
 
2892
2892
  // src/amazon-bedrock-sigv4-fetch.ts
2893
2893
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
@@ -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.93" : "0.0.0-test";
38
+ var VERSION = true ? "5.0.94" : "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.93" : "0.0.0-test";
26
+ var VERSION = true ? "5.0.94" : "0.0.0-test";
27
27
 
28
28
  // src/amazon-bedrock-sigv4-fetch.ts
29
29
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
@@ -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('anthropic.claude-3-haiku-20240307-v1:0'),
331
+ model: amazonBedrock('us.anthropic.claude-haiku-4-5-20251001-v1:0'),
332
332
  messages: [
333
333
  {
334
334
  role: 'user',
@@ -544,7 +544,7 @@ const cyberpunkAnalysis =
544
544
  '... literary analysis of cyberpunk themes and concepts ...';
545
545
 
546
546
  const result = await generateText({
547
- model: amazonBedrock('anthropic.claude-3-5-sonnet-20241022-v2:0'),
547
+ model: amazonBedrock('us.anthropic.claude-sonnet-5'),
548
548
  messages: [
549
549
  {
550
550
  role: 'system',
@@ -580,7 +580,7 @@ const cyberpunkAnalysis =
580
580
  '... literary analysis of cyberpunk themes and concepts ...';
581
581
 
582
582
  const result = streamText({
583
- model: amazonBedrock('anthropic.claude-3-5-sonnet-20241022-v2:0'),
583
+ model: amazonBedrock('us.anthropic.claude-sonnet-5'),
584
584
  messages: [
585
585
  {
586
586
  role: 'assistant',
@@ -1590,10 +1590,10 @@ You can use the following optional settings to customize the Bedrock Anthropic p
1590
1590
  ### Language Models
1591
1591
 
1592
1592
  You can create models that call the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post) using the provider instance.
1593
- The first argument is the model id, e.g. `us.anthropic.claude-3-5-sonnet-20241022-v2:0`.
1593
+ The first argument is the model id, e.g. `us.anthropic.claude-sonnet-5`.
1594
1594
 
1595
1595
  ```ts
1596
- const model = bedrockAnthropic('us.anthropic.claude-3-5-sonnet-20241022-v2:0');
1596
+ const model = bedrockAnthropic('us.anthropic.claude-sonnet-5');
1597
1597
  ```
1598
1598
 
1599
1599
  You can use Bedrock Anthropic language models to generate text with the `generateText` function:
@@ -1603,7 +1603,7 @@ import { bedrockAnthropic } from '@ai-sdk/amazon-bedrock/anthropic';
1603
1603
  import { generateText } from 'ai';
1604
1604
 
1605
1605
  const { text } = await generateText({
1606
- model: bedrockAnthropic('us.anthropic.claude-3-5-sonnet-20241022-v2:0'),
1606
+ model: bedrockAnthropic('us.anthropic.claude-sonnet-5'),
1607
1607
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
1608
1608
  });
1609
1609
  ```
@@ -1627,7 +1627,7 @@ import { bedrockAnthropic } from '@ai-sdk/amazon-bedrock/anthropic';
1627
1627
  import { generateText } from 'ai';
1628
1628
 
1629
1629
  const result = await generateText({
1630
- model: bedrockAnthropic('us.anthropic.claude-sonnet-4-5-20250929-v1:0'),
1630
+ model: bedrockAnthropic('us.anthropic.claude-sonnet-5'),
1631
1631
  messages: [
1632
1632
  {
1633
1633
  role: 'system',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "5.0.93",
3
+ "version": "5.0.94",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -41,8 +41,8 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@ai-sdk/anthropic": "4.0.62",
45
- "@ai-sdk/openai": "4.0.74",
44
+ "@ai-sdk/anthropic": "4.0.63",
45
+ "@ai-sdk/openai": "4.0.75",
46
46
  "@ai-sdk/provider": "4.0.18",
47
47
  "@ai-sdk/provider-utils": "5.0.47",
48
48
  "@smithy/eventstream-codec": "^4.3.3",