@ai-sdk/amazon-bedrock 4.0.81 → 4.0.83

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,21 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 4.0.83
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [05b8ca2]
8
+ - @ai-sdk/anthropic@3.0.64
9
+
10
+ ## 4.0.82
11
+
12
+ ### Patch Changes
13
+
14
+ - 055cd68: fix: publish v6 to latest npm dist tag
15
+ - Updated dependencies [055cd68]
16
+ - @ai-sdk/provider-utils@4.0.21
17
+ - @ai-sdk/anthropic@3.0.63
18
+
3
19
  ## 4.0.81
4
20
 
5
21
  ### Patch Changes
@@ -621,13 +637,13 @@
621
637
  Before
622
638
 
623
639
  ```ts
624
- model.textEmbeddingModel('my-model-id');
640
+ model.textEmbeddingModel("my-model-id");
625
641
  ```
626
642
 
627
643
  After
628
644
 
629
645
  ```ts
630
- model.embeddingModel('my-model-id');
646
+ model.embeddingModel("my-model-id");
631
647
  ```
632
648
 
633
649
  - 2625a04: feat(openai); update spec for mcp approval
@@ -1019,13 +1035,13 @@
1019
1035
  Before
1020
1036
 
1021
1037
  ```ts
1022
- model.textEmbeddingModel('my-model-id');
1038
+ model.textEmbeddingModel("my-model-id");
1023
1039
  ```
1024
1040
 
1025
1041
  After
1026
1042
 
1027
1043
  ```ts
1028
- model.embeddingModel('my-model-id');
1044
+ model.embeddingModel("my-model-id");
1029
1045
  ```
1030
1046
 
1031
1047
  - Updated dependencies [8d9e8ad]
@@ -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 ? "4.0.81" : "0.0.0-test";
38
+ var VERSION = true ? "4.0.83" : "0.0.0-test";
39
39
 
40
40
  // src/bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
@@ -24,7 +24,7 @@ import {
24
24
  import { AwsV4Signer } from "aws4fetch";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "4.0.81" : "0.0.0-test";
27
+ var VERSION = true ? "4.0.83" : "0.0.0-test";
28
28
 
29
29
  // src/bedrock-sigv4-fetch.ts
30
30
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
package/dist/index.js CHANGED
@@ -1949,7 +1949,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
1949
1949
  var import_aws4fetch = require("aws4fetch");
1950
1950
 
1951
1951
  // src/version.ts
1952
- var VERSION = true ? "4.0.81" : "0.0.0-test";
1952
+ var VERSION = true ? "4.0.83" : "0.0.0-test";
1953
1953
 
1954
1954
  // src/bedrock-sigv4-fetch.ts
1955
1955
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
package/dist/index.mjs CHANGED
@@ -1970,7 +1970,7 @@ import {
1970
1970
  import { AwsV4Signer } from "aws4fetch";
1971
1971
 
1972
1972
  // src/version.ts
1973
- var VERSION = true ? "4.0.81" : "0.0.0-test";
1973
+ var VERSION = true ? "4.0.83" : "0.0.0-test";
1974
1974
 
1975
1975
  // src/bedrock-sigv4-fetch.ts
1976
1976
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
@@ -1380,6 +1380,16 @@ const { text } = await generateText({
1380
1380
  });
1381
1381
  ```
1382
1382
 
1383
+ ### Provider Options
1384
+
1385
+ The following optional provider options are available for Bedrock Anthropic models:
1386
+
1387
+ - `metadata` _object_
1388
+
1389
+ Optional. Metadata to include with the request. See the [Anthropic API documentation](https://platform.claude.com/docs/en/api/messages/create) for details.
1390
+
1391
+ - `userId` _string_ - An external identifier for the end-user.
1392
+
1383
1393
  ### Cache Control
1384
1394
 
1385
1395
  In the messages and message parts, you can use the `providerOptions` property to set cache control breakpoints.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "4.0.81",
3
+ "version": "4.0.83",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -38,9 +38,9 @@
38
38
  "@smithy/eventstream-codec": "^4.0.1",
39
39
  "@smithy/util-utf8": "^4.0.0",
40
40
  "aws4fetch": "^1.0.20",
41
- "@ai-sdk/anthropic": "3.0.62",
42
41
  "@ai-sdk/provider": "3.0.8",
43
- "@ai-sdk/provider-utils": "4.0.20"
42
+ "@ai-sdk/anthropic": "3.0.64",
43
+ "@ai-sdk/provider-utils": "4.0.21"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "20.17.24",
@@ -74,9 +74,7 @@
74
74
  "build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
75
75
  "build:watch": "pnpm clean && tsup --watch",
76
76
  "clean": "del-cli dist docs *.tsbuildinfo",
77
- "lint": "eslint \"./**/*.ts*\"",
78
77
  "type-check": "tsc --build",
79
- "prettier-check": "prettier --check \"./**/*.ts*\"",
80
78
  "test": "pnpm test:node && pnpm test:edge",
81
79
  "test:update": "pnpm test:node -u",
82
80
  "test:watch": "vitest --config vitest.node.config.js",