@ai-sdk/amazon-bedrock 4.0.44 → 4.0.46

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,22 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 4.0.46
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [53f6731]
8
+ - @ai-sdk/provider@3.0.7
9
+ - @ai-sdk/anthropic@3.0.35
10
+ - @ai-sdk/provider-utils@4.0.13
11
+
12
+ ## 4.0.45
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [96936e5]
17
+ - @ai-sdk/provider-utils@4.0.12
18
+ - @ai-sdk/anthropic@3.0.34
19
+
3
20
  ## 4.0.44
4
21
 
5
22
  ### Patch Changes
@@ -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.44" : "0.0.0-test";
38
+ var VERSION = true ? "4.0.46" : "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.44" : "0.0.0-test";
27
+ var VERSION = true ? "4.0.46" : "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
@@ -1878,7 +1878,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
1878
1878
  var import_aws4fetch = require("aws4fetch");
1879
1879
 
1880
1880
  // src/version.ts
1881
- var VERSION = true ? "4.0.44" : "0.0.0-test";
1881
+ var VERSION = true ? "4.0.46" : "0.0.0-test";
1882
1882
 
1883
1883
  // src/bedrock-sigv4-fetch.ts
1884
1884
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
package/dist/index.mjs CHANGED
@@ -1895,7 +1895,7 @@ import {
1895
1895
  import { AwsV4Signer } from "aws4fetch";
1896
1896
 
1897
1897
  // src/version.ts
1898
- var VERSION = true ? "4.0.44" : "0.0.0-test";
1898
+ var VERSION = true ? "4.0.46" : "0.0.0-test";
1899
1899
 
1900
1900
  // src/bedrock-sigv4-fetch.ts
1901
1901
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
@@ -348,7 +348,21 @@ console.log('Response:', result.object);
348
348
 
349
349
  In messages, you can use the `providerOptions` property to set cache points. Set the `bedrock` property in the `providerOptions` object to `{ cachePoint: { type: 'default' } }` to create a cache point.
350
350
 
351
- Cache usage information is returned in the `providerMetadata` object`. See examples below.
351
+ You can also specify a TTL (time-to-live) for cache points using the `ttl` property. Supported values are `'5m'` (5 minutes, default) and `'1h'` (1 hour). The 1-hour TTL is only supported by Claude Opus 4.5, Claude Haiku 4.5, and Claude Sonnet 4.5.
352
+
353
+ ```ts
354
+ providerOptions: {
355
+ bedrock: { cachePoint: { type: 'default', ttl: '1h' } },
356
+ }
357
+ ```
358
+
359
+ <Note>
360
+ When using multiple cache points with different TTLs, cache entries with
361
+ longer TTL must appear before shorter TTLs (i.e., 1-hour cache entries must
362
+ come before 5-minute cache entries).
363
+ </Note>
364
+
365
+ Cache usage information is returned in the `providerMetadata` object. See examples below.
352
366
 
353
367
  <Note>
354
368
  Cache points have model-specific token minimums and limits. For example,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "4.0.44",
3
+ "version": "4.0.46",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -38,17 +38,17 @@
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.33",
42
- "@ai-sdk/provider": "3.0.6",
43
- "@ai-sdk/provider-utils": "4.0.11"
41
+ "@ai-sdk/anthropic": "3.0.35",
42
+ "@ai-sdk/provider": "3.0.7",
43
+ "@ai-sdk/provider-utils": "4.0.13"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "20.17.24",
47
47
  "tsup": "^8.3.0",
48
48
  "typescript": "5.8.3",
49
49
  "zod": "3.25.76",
50
- "@vercel/ai-tsconfig": "0.0.0",
51
- "@ai-sdk/test-server": "1.0.3"
50
+ "@ai-sdk/test-server": "1.0.3",
51
+ "@vercel/ai-tsconfig": "0.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "zod": "^3.25.76 || ^4.1.8"