@ai-sdk/amazon-bedrock 4.0.82 → 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,12 @@
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
+
3
10
  ## 4.0.82
4
11
 
5
12
  ### Patch Changes
@@ -630,13 +637,13 @@
630
637
  Before
631
638
 
632
639
  ```ts
633
- model.textEmbeddingModel('my-model-id');
640
+ model.textEmbeddingModel("my-model-id");
634
641
  ```
635
642
 
636
643
  After
637
644
 
638
645
  ```ts
639
- model.embeddingModel('my-model-id');
646
+ model.embeddingModel("my-model-id");
640
647
  ```
641
648
 
642
649
  - 2625a04: feat(openai); update spec for mcp approval
@@ -1028,13 +1035,13 @@
1028
1035
  Before
1029
1036
 
1030
1037
  ```ts
1031
- model.textEmbeddingModel('my-model-id');
1038
+ model.textEmbeddingModel("my-model-id");
1032
1039
  ```
1033
1040
 
1034
1041
  After
1035
1042
 
1036
1043
  ```ts
1037
- model.embeddingModel('my-model-id');
1044
+ model.embeddingModel("my-model-id");
1038
1045
  ```
1039
1046
 
1040
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.82" : "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.82" : "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.82" : "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.82" : "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.82",
3
+ "version": "4.0.83",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
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.63",
42
41
  "@ai-sdk/provider": "3.0.8",
42
+ "@ai-sdk/anthropic": "3.0.64",
43
43
  "@ai-sdk/provider-utils": "4.0.21"
44
44
  },
45
45
  "devDependencies": {
@@ -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",