@ai-sdk/amazon-bedrock 5.0.0-beta.7 → 5.0.0-beta.85

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +677 -4
  2. package/README.md +2 -0
  3. package/dist/anthropic/index.d.ts +10 -10
  4. package/dist/anthropic/index.js +151 -117
  5. package/dist/anthropic/index.js.map +1 -1
  6. package/dist/index.d.ts +36 -23
  7. package/dist/index.js +881 -604
  8. package/dist/index.js.map +1 -1
  9. package/dist/mantle/index.cjs +253 -0
  10. package/dist/mantle/index.cjs.map +1 -0
  11. package/dist/mantle/index.d.cts +99 -0
  12. package/dist/mantle/index.d.ts +99 -0
  13. package/dist/mantle/index.js +240 -0
  14. package/dist/mantle/index.js.map +1 -0
  15. package/docs/08-amazon-bedrock.mdx +310 -84
  16. package/mantle/index.d.ts +1 -0
  17. package/package.json +27 -20
  18. package/src/amazon-bedrock-api-types.ts +228 -0
  19. package/src/{bedrock-chat-options.ts → amazon-bedrock-chat-language-model-options.ts} +27 -8
  20. package/src/{bedrock-chat-language-model.ts → amazon-bedrock-chat-language-model.ts} +350 -180
  21. package/src/{bedrock-embedding-options.ts → amazon-bedrock-embedding-model-options.ts} +1 -1
  22. package/src/{bedrock-embedding-model.ts → amazon-bedrock-embedding-model.ts} +61 -29
  23. package/src/{bedrock-error.ts → amazon-bedrock-error.ts} +1 -1
  24. package/src/{bedrock-event-stream-decoder.ts → amazon-bedrock-event-stream-decoder.ts} +1 -1
  25. package/src/{bedrock-event-stream-response-handler.ts → amazon-bedrock-event-stream-response-handler.ts} +6 -6
  26. package/src/{bedrock-image-model.ts → amazon-bedrock-image-model.ts} +62 -38
  27. package/src/amazon-bedrock-image-settings.ts +9 -0
  28. package/src/{bedrock-prepare-tools.ts → amazon-bedrock-prepare-tools.ts} +22 -18
  29. package/src/{bedrock-provider.ts → amazon-bedrock-provider.ts} +53 -46
  30. package/src/amazon-bedrock-reasoning-metadata.ts +10 -0
  31. package/src/{bedrock-sigv4-fetch.ts → amazon-bedrock-sigv4-fetch.ts} +17 -9
  32. package/src/anthropic/amazon-bedrock-anthropic-fetch.ts +104 -0
  33. package/src/anthropic/{bedrock-anthropic-options.ts → amazon-bedrock-anthropic-options.ts} +7 -1
  34. package/src/anthropic/{bedrock-anthropic-provider.ts → amazon-bedrock-anthropic-provider.ts} +40 -24
  35. package/src/anthropic/index.ts +19 -7
  36. package/src/{convert-bedrock-usage.ts → convert-amazon-bedrock-usage.ts} +4 -4
  37. package/src/convert-to-amazon-bedrock-chat-messages.ts +556 -0
  38. package/src/index.ts +15 -8
  39. package/src/inject-fetch-headers.ts +1 -1
  40. package/src/mantle/bedrock-mantle-options.ts +15 -0
  41. package/src/mantle/bedrock-mantle-provider.ts +283 -0
  42. package/src/mantle/index.ts +6 -0
  43. package/src/{map-bedrock-finish-reason.ts → map-amazon-bedrock-finish-reason.ts} +4 -4
  44. package/src/reranking/{bedrock-reranking-api.ts → amazon-bedrock-reranking-api.ts} +3 -3
  45. package/src/reranking/{bedrock-reranking-options.ts → amazon-bedrock-reranking-model-options.ts} +1 -1
  46. package/src/reranking/{bedrock-reranking-model.ts → amazon-bedrock-reranking-model.ts} +32 -25
  47. package/dist/anthropic/index.d.mts +0 -91
  48. package/dist/anthropic/index.mjs +0 -397
  49. package/dist/anthropic/index.mjs.map +0 -1
  50. package/dist/index.d.mts +0 -194
  51. package/dist/index.mjs +0 -2329
  52. package/dist/index.mjs.map +0 -1
  53. package/src/anthropic/bedrock-anthropic-fetch.ts +0 -68
  54. package/src/bedrock-api-types.ts +0 -216
  55. package/src/bedrock-image-settings.ts +0 -6
  56. package/src/convert-to-bedrock-chat-messages.ts +0 -468
package/CHANGELOG.md CHANGED
@@ -1,5 +1,678 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 5.0.0-beta.85
4
+
5
+ ### Patch Changes
6
+
7
+ - b8396f0: trigger initial beta release
8
+ - Updated dependencies [b8396f0]
9
+ - @ai-sdk/anthropic@4.0.0-beta.67
10
+ - @ai-sdk/openai@4.0.0-beta.74
11
+ - @ai-sdk/provider-utils@5.0.0-beta.49
12
+ - @ai-sdk/provider@4.0.0-beta.19
13
+
14
+ ## 5.0.0-canary.84
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [aeda373]
19
+ - Updated dependencies [375fdd7]
20
+ - Updated dependencies [b4507d5]
21
+ - @ai-sdk/provider-utils@5.0.0-canary.48
22
+ - @ai-sdk/anthropic@4.0.0-canary.66
23
+ - @ai-sdk/openai@4.0.0-canary.73
24
+
25
+ ## 5.0.0-canary.83
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [bae5e2b]
30
+ - @ai-sdk/provider-utils@5.0.0-canary.47
31
+ - @ai-sdk/anthropic@4.0.0-canary.65
32
+ - @ai-sdk/openai@4.0.0-canary.72
33
+
34
+ ## 5.0.0-canary.82
35
+
36
+ ### Patch Changes
37
+
38
+ - 9eda693: fix(provider/amazon-bedrock): detect Cohere embedding models behind cross-region inference profile ids
39
+
40
+ ## 5.0.0-canary.81
41
+
42
+ ### Patch Changes
43
+
44
+ - 9fa4e9d: fix(provider/amazon-bedrock): extract Cohere embedding token usage from response header
45
+
46
+ ## 5.0.0-canary.80
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [ae7f932]
51
+ - @ai-sdk/openai@4.0.0-canary.71
52
+
53
+ ## 5.0.0-canary.79
54
+
55
+ ### Patch Changes
56
+
57
+ - 6b4d325: feat(provider/anthropic): add support for `claude-fable-5` and the `fallbacks` API parameter
58
+ - Updated dependencies [6a5800e]
59
+ - Updated dependencies [6b4d325]
60
+ - @ai-sdk/openai@4.0.0-canary.70
61
+ - @ai-sdk/anthropic@4.0.0-canary.64
62
+
63
+ ## 5.0.0-canary.78
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [ce769dd]
68
+ - @ai-sdk/provider@4.0.0-canary.18
69
+ - @ai-sdk/openai@4.0.0-canary.69
70
+ - @ai-sdk/anthropic@4.0.0-canary.63
71
+ - @ai-sdk/provider-utils@5.0.0-canary.46
72
+
73
+ ## 5.0.0-canary.77
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [94eba1b]
78
+ - @ai-sdk/openai@4.0.0-canary.68
79
+
80
+ ## 5.0.0-canary.76
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [ee798eb]
85
+ - Updated dependencies [61bcdb5]
86
+ - Updated dependencies [daf6637]
87
+ - @ai-sdk/provider-utils@5.0.0-canary.45
88
+ - @ai-sdk/anthropic@4.0.0-canary.62
89
+ - @ai-sdk/openai@4.0.0-canary.67
90
+
91
+ ## 5.0.0-canary.75
92
+
93
+ ### Patch Changes
94
+
95
+ - 32603d2: fix (provider/amazon-bedrock): correct mantle subpath exports
96
+
97
+ ## 5.0.0-canary.74
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies [e776fc7]
102
+ - @ai-sdk/openai@4.0.0-canary.66
103
+
104
+ ## 5.0.0-canary.73
105
+
106
+ ### Patch Changes
107
+
108
+ - e02f041: feat(provider/anthropic): add support for `claude-opus-4-8`
109
+ - Updated dependencies [e02f041]
110
+ - @ai-sdk/anthropic@4.0.0-canary.61
111
+
112
+ ## 5.0.0-canary.72
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [cd3de8b]
117
+ - @ai-sdk/openai@4.0.0-canary.65
118
+
119
+ ## 5.0.0-canary.71
120
+
121
+ ### Patch Changes
122
+
123
+ - 9d5a299: fix(amazon-bedrock): support document files in tool results
124
+
125
+ ## 5.0.0-canary.70
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [6c93e36]
130
+ - Updated dependencies [f617ac2]
131
+ - @ai-sdk/provider-utils@5.0.0-canary.44
132
+ - @ai-sdk/anthropic@4.0.0-canary.60
133
+ - @ai-sdk/openai@4.0.0-canary.64
134
+
135
+ ## 5.0.0-canary.69
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies [648705c]
140
+ - @ai-sdk/anthropic@4.0.0-canary.59
141
+
142
+ ## 5.0.0-canary.68
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies [acdbf84]
147
+ - @ai-sdk/anthropic@4.0.0-canary.58
148
+
149
+ ## 5.0.0-canary.67
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [17b5597]
154
+ - @ai-sdk/openai@4.0.0-canary.63
155
+
156
+ ## 5.0.0-canary.66
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [bf837fe]
161
+ - @ai-sdk/openai@4.0.0-canary.62
162
+
163
+ ## 5.0.0-canary.65
164
+
165
+ ### Patch Changes
166
+
167
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
168
+ - Updated dependencies [7fc6bd6]
169
+ - @ai-sdk/anthropic@4.0.0-canary.57
170
+ - @ai-sdk/openai@4.0.0-canary.61
171
+ - @ai-sdk/provider-utils@5.0.0-canary.43
172
+ - @ai-sdk/provider@4.0.0-canary.17
173
+
174
+ ## 5.0.0-canary.64
175
+
176
+ ### Patch Changes
177
+
178
+ - b567a6c: dependency updates
179
+ - Updated dependencies [a6617c5]
180
+ - @ai-sdk/provider-utils@5.0.0-canary.42
181
+ - @ai-sdk/anthropic@4.0.0-canary.56
182
+ - @ai-sdk/openai@4.0.0-canary.60
183
+
184
+ ## 5.0.0-canary.63
185
+
186
+ ### Patch Changes
187
+
188
+ - cd27bca: added bedrock mantle provider
189
+ - b555b23: fix(amazon-bedrock): disable native structured output for claude-opus-4-7
190
+
191
+ ## 5.0.0-canary.62
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [a464505]
196
+ - Updated dependencies [28dfa06]
197
+ - Updated dependencies [e93fa91]
198
+ - @ai-sdk/anthropic@4.0.0-canary.55
199
+ - @ai-sdk/provider-utils@5.0.0-canary.41
200
+
201
+ ## 5.0.0-canary.61
202
+
203
+ ### Patch Changes
204
+
205
+ - Updated dependencies [a7de9c9]
206
+ - @ai-sdk/provider-utils@5.0.0-canary.40
207
+ - @ai-sdk/anthropic@4.0.0-canary.54
208
+
209
+ ## 5.0.0-canary.60
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [105f95b]
214
+ - @ai-sdk/provider-utils@5.0.0-canary.39
215
+ - @ai-sdk/anthropic@4.0.0-canary.53
216
+
217
+ ## 5.0.0-canary.59
218
+
219
+ ### Patch Changes
220
+
221
+ - Updated dependencies [8018480]
222
+ - @ai-sdk/anthropic@4.0.0-canary.52
223
+
224
+ ## 5.0.0-canary.58
225
+
226
+ ### Patch Changes
227
+
228
+ - bcbaae6: fix(bedrock): skip passing unsigned reasoning content
229
+
230
+ ## 5.0.0-canary.57
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies [ca446f8]
235
+ - @ai-sdk/provider-utils@5.0.0-canary.38
236
+ - @ai-sdk/anthropic@4.0.0-canary.51
237
+
238
+ ## 5.0.0-canary.56
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [d848405]
243
+ - @ai-sdk/provider-utils@5.0.0-canary.37
244
+ - @ai-sdk/anthropic@4.0.0-canary.50
245
+
246
+ ## 5.0.0-canary.55
247
+
248
+ ### Patch Changes
249
+
250
+ - Updated dependencies [ca39020]
251
+ - @ai-sdk/provider-utils@5.0.0-canary.36
252
+ - @ai-sdk/anthropic@4.0.0-canary.49
253
+
254
+ ## 5.0.0-canary.54
255
+
256
+ ### Patch Changes
257
+
258
+ - 9c78e5d: fix (provider/amazon-bedrock): preserve cache points on message content parts
259
+
260
+ ## 5.0.0-canary.53
261
+
262
+ ### Patch Changes
263
+
264
+ - Updated dependencies [f634bac]
265
+ - @ai-sdk/provider-utils@5.0.0-canary.35
266
+ - @ai-sdk/anthropic@4.0.0-canary.48
267
+
268
+ ## 5.0.0-canary.52
269
+
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies [2610e84]
273
+ - Updated dependencies [69254e0]
274
+ - Updated dependencies [3015fc3]
275
+ - @ai-sdk/anthropic@4.0.0-canary.47
276
+ - @ai-sdk/provider-utils@5.0.0-canary.34
277
+
278
+ ## 5.0.0-canary.51
279
+
280
+ ### Patch Changes
281
+
282
+ - Updated dependencies [e5c4f40]
283
+ - @ai-sdk/anthropic@4.0.0-canary.46
284
+
285
+ ## 5.0.0-canary.50
286
+
287
+ ### Patch Changes
288
+
289
+ - 68c5081: fix(provider/amazon-bedrock): mark `input` optional on tool-use schema so streaming `contentBlockStart` events parse under Zod >= 4.4.0
290
+ - Updated dependencies [2427d88]
291
+ - @ai-sdk/provider-utils@5.0.0-canary.33
292
+ - @ai-sdk/anthropic@4.0.0-canary.45
293
+
294
+ ## 5.0.0-canary.49
295
+
296
+ ### Patch Changes
297
+
298
+ - 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types
299
+ - Updated dependencies [5463d0d]
300
+ - @ai-sdk/provider-utils@5.0.0-canary.32
301
+ - @ai-sdk/provider@4.0.0-canary.16
302
+ - @ai-sdk/anthropic@4.0.0-canary.44
303
+
304
+ ## 5.0.0-canary.48
305
+
306
+ ### Patch Changes
307
+
308
+ - 0c4c275: trigger initial canary release
309
+ - Updated dependencies [0c4c275]
310
+ - @ai-sdk/provider-utils@5.0.0-canary.31
311
+ - @ai-sdk/anthropic@4.0.0-canary.43
312
+ - @ai-sdk/provider@4.0.0-canary.15
313
+
314
+ ## 5.0.0-beta.47
315
+
316
+ ### Patch Changes
317
+
318
+ - d0dbd96: Fix `createAmazonBedrock()` capturing `globalThis.fetch` at initialization time, which caused telemetry instrumentation (e.g. OpenTelemetry, Datadog) and other `globalThis.fetch` patches applied after provider creation to be silently ignored.
319
+
320
+ ## 5.0.0-beta.46
321
+
322
+ ### Major Changes
323
+
324
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
325
+
326
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies [08d2129]
331
+ - Updated dependencies [04e9009]
332
+ - @ai-sdk/provider-utils@5.0.0-beta.30
333
+ - @ai-sdk/anthropic@4.0.0-beta.42
334
+
335
+ ## 5.0.0-beta.45
336
+
337
+ ### Patch Changes
338
+
339
+ - 6732c16: fix(amazon-bedrock): do not use env var AWS_SESSION_TOKEN when keys are explicitly defined
340
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
341
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
342
+ - Updated dependencies [9bd6512]
343
+ - Updated dependencies [258c093]
344
+ - Updated dependencies [b6783da]
345
+ - @ai-sdk/provider-utils@5.0.0-beta.29
346
+ - @ai-sdk/anthropic@4.0.0-beta.41
347
+ - @ai-sdk/provider@4.0.0-beta.14
348
+
349
+ ## 5.0.0-beta.44
350
+
351
+ ### Patch Changes
352
+
353
+ - Updated dependencies [c012d57]
354
+ - @ai-sdk/anthropic@4.0.0-beta.40
355
+
356
+ ## 5.0.0-beta.43
357
+
358
+ ### Patch Changes
359
+
360
+ - 9f0e36c: trigger release for all packages after provenance setup
361
+ - Updated dependencies [9f0e36c]
362
+ - @ai-sdk/anthropic@4.0.0-beta.39
363
+ - @ai-sdk/provider@4.0.0-beta.13
364
+ - @ai-sdk/provider-utils@5.0.0-beta.28
365
+
366
+ ## 5.0.0-beta.42
367
+
368
+ ### Patch Changes
369
+
370
+ - fae8d44: fix(provider/amazon-bedrock): merge custom reasoning config properties when top-level reasoning parameter is set
371
+ - 87d1723: chore(anthropic): remove unnecessary messages affix from Anthropic symbols and files
372
+ - 58a2ad7: fix: more precise default message for tool execution denial
373
+ - Updated dependencies [785fe16]
374
+ - Updated dependencies [67df0a0]
375
+ - Updated dependencies [87d1723]
376
+ - Updated dependencies [befb78c]
377
+ - Updated dependencies [0458559]
378
+ - Updated dependencies [58a2ad7]
379
+ - Updated dependencies [5852c0a]
380
+ - Updated dependencies [fc92055]
381
+ - @ai-sdk/provider-utils@5.0.0-beta.27
382
+ - @ai-sdk/anthropic@4.0.0-beta.38
383
+
384
+ ## 5.0.0-beta.41
385
+
386
+ ### Patch Changes
387
+
388
+ - ed60b47: fix(provider/amazon-bedrock): fix Anthropic reasoning behavior related to Opus 4.7
389
+ - Updated dependencies [2e98477]
390
+ - @ai-sdk/provider-utils@5.0.0-beta.26
391
+ - @ai-sdk/anthropic@4.0.0-beta.37
392
+
393
+ ## 5.0.0-beta.40
394
+
395
+ ### Patch Changes
396
+
397
+ - Updated dependencies [eea8d98]
398
+ - @ai-sdk/provider-utils@5.0.0-beta.25
399
+ - @ai-sdk/anthropic@4.0.0-beta.36
400
+
401
+ ## 5.0.0-beta.39
402
+
403
+ ### Patch Changes
404
+
405
+ - Updated dependencies [f807e45]
406
+ - @ai-sdk/provider-utils@5.0.0-beta.24
407
+ - @ai-sdk/anthropic@4.0.0-beta.35
408
+
409
+ ## 5.0.0-beta.38
410
+
411
+ ### Patch Changes
412
+
413
+ - Updated dependencies [350ea38]
414
+ - @ai-sdk/provider-utils@5.0.0-beta.23
415
+ - @ai-sdk/anthropic@4.0.0-beta.34
416
+
417
+ ## 5.0.0-beta.37
418
+
419
+ ### Patch Changes
420
+
421
+ - Updated dependencies [832f86f]
422
+ - @ai-sdk/anthropic@4.0.0-beta.33
423
+
424
+ ## 5.0.0-beta.36
425
+
426
+ ### Patch Changes
427
+
428
+ - Updated dependencies [ad0b376]
429
+ - @ai-sdk/anthropic@4.0.0-beta.32
430
+
431
+ ## 5.0.0-beta.35
432
+
433
+ ### Patch Changes
434
+
435
+ - Updated dependencies [083947b]
436
+ - @ai-sdk/provider-utils@5.0.0-beta.22
437
+ - @ai-sdk/anthropic@4.0.0-beta.31
438
+
439
+ ## 5.0.0-beta.34
440
+
441
+ ### Patch Changes
442
+
443
+ - 0d8f107: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancements
444
+ - Updated dependencies [0d8f107]
445
+ - @ai-sdk/anthropic@4.0.0-beta.30
446
+
447
+ ## 5.0.0-beta.33
448
+
449
+ ### Patch Changes
450
+
451
+ - Updated dependencies [add1126]
452
+ - @ai-sdk/provider-utils@5.0.0-beta.21
453
+ - @ai-sdk/anthropic@4.0.0-beta.29
454
+
455
+ ## 5.0.0-beta.32
456
+
457
+ ### Patch Changes
458
+
459
+ - b3976a2: Add workflow serialization support to all provider models.
460
+
461
+ **`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
462
+
463
+ **All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
464
+
465
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
466
+
467
+ - ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
468
+ - Updated dependencies [b3976a2]
469
+ - Updated dependencies [ff5eba1]
470
+ - @ai-sdk/provider-utils@5.0.0-beta.20
471
+ - @ai-sdk/anthropic@4.0.0-beta.28
472
+ - @ai-sdk/provider@4.0.0-beta.12
473
+
474
+ ## 5.0.0-beta.31
475
+
476
+ ### Major Changes
477
+
478
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
479
+
480
+ ### Patch Changes
481
+
482
+ - Updated dependencies [ef992f8]
483
+ - @ai-sdk/anthropic@4.0.0-beta.27
484
+ - @ai-sdk/provider@4.0.0-beta.11
485
+ - @ai-sdk/provider-utils@5.0.0-beta.19
486
+
487
+ ## 5.0.0-beta.30
488
+
489
+ ### Patch Changes
490
+
491
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
492
+ - Updated dependencies [90e2d8a]
493
+ - @ai-sdk/provider-utils@5.0.0-beta.18
494
+ - @ai-sdk/anthropic@4.0.0-beta.26
495
+
496
+ ## 5.0.0-beta.29
497
+
498
+ ### Patch Changes
499
+
500
+ - Updated dependencies [09bd27b]
501
+ - @ai-sdk/anthropic@4.0.0-beta.25
502
+
503
+ ## 5.0.0-beta.28
504
+
505
+ ### Patch Changes
506
+
507
+ - Updated dependencies [3ae1786]
508
+ - @ai-sdk/provider-utils@5.0.0-beta.17
509
+ - @ai-sdk/anthropic@4.0.0-beta.24
510
+
511
+ ## 5.0.0-beta.27
512
+
513
+ ### Patch Changes
514
+
515
+ - Updated dependencies [176466a]
516
+ - @ai-sdk/provider@4.0.0-beta.10
517
+ - @ai-sdk/anthropic@4.0.0-beta.23
518
+ - @ai-sdk/provider-utils@5.0.0-beta.16
519
+
520
+ ## 5.0.0-beta.26
521
+
522
+ ### Patch Changes
523
+
524
+ - Updated dependencies [e311194]
525
+ - @ai-sdk/provider@4.0.0-beta.9
526
+ - @ai-sdk/anthropic@4.0.0-beta.22
527
+ - @ai-sdk/provider-utils@5.0.0-beta.15
528
+
529
+ ## 5.0.0-beta.25
530
+
531
+ ### Patch Changes
532
+
533
+ - 24ac76f: fix(amazon-bedrock): preserve empty text blocks when reasoning content is present
534
+ - cdc15f3: feat(bedrock): support native structured output for anthropic models without reasoning
535
+ - Updated dependencies [34bd95d]
536
+ - Updated dependencies [008271d]
537
+ - @ai-sdk/anthropic@4.0.0-beta.21
538
+ - @ai-sdk/provider@4.0.0-beta.8
539
+ - @ai-sdk/provider-utils@5.0.0-beta.14
540
+
541
+ ## 5.0.0-beta.24
542
+
543
+ ### Patch Changes
544
+
545
+ - Updated dependencies [b0c2869]
546
+ - Updated dependencies [7e26e81]
547
+ - @ai-sdk/provider-utils@5.0.0-beta.13
548
+ - @ai-sdk/anthropic@4.0.0-beta.20
549
+
550
+ ## 5.0.0-beta.23
551
+
552
+ ### Patch Changes
553
+
554
+ - Updated dependencies [46d1149]
555
+ - @ai-sdk/provider-utils@5.0.0-beta.12
556
+ - @ai-sdk/anthropic@4.0.0-beta.19
557
+
558
+ ## 5.0.0-beta.22
559
+
560
+ ### Patch Changes
561
+
562
+ - Updated dependencies [6fd51c0]
563
+ - @ai-sdk/provider-utils@5.0.0-beta.11
564
+ - @ai-sdk/provider@4.0.0-beta.7
565
+ - @ai-sdk/anthropic@4.0.0-beta.18
566
+
567
+ ## 5.0.0-beta.21
568
+
569
+ ### Patch Changes
570
+
571
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
572
+ - Updated dependencies [c29a26f]
573
+ - @ai-sdk/provider-utils@5.0.0-beta.10
574
+ - @ai-sdk/anthropic@4.0.0-beta.17
575
+ - @ai-sdk/provider@4.0.0-beta.6
576
+
577
+ ## 5.0.0-beta.20
578
+
579
+ ### Patch Changes
580
+
581
+ - 38fc777: Add AI Gateway hint to provider READMEs
582
+ - Updated dependencies [38fc777]
583
+ - @ai-sdk/anthropic@4.0.0-beta.16
584
+
585
+ ## 5.0.0-beta.19
586
+
587
+ ### Patch Changes
588
+
589
+ - Updated dependencies [f57c702]
590
+ - @ai-sdk/anthropic@4.0.0-beta.15
591
+
592
+ ## 5.0.0-beta.18
593
+
594
+ ### Patch Changes
595
+
596
+ - Updated dependencies [2e17091]
597
+ - @ai-sdk/provider-utils@5.0.0-beta.9
598
+ - @ai-sdk/anthropic@4.0.0-beta.14
599
+
600
+ ## 5.0.0-beta.17
601
+
602
+ ### Patch Changes
603
+
604
+ - Updated dependencies [986c6fd]
605
+ - Updated dependencies [493295c]
606
+ - @ai-sdk/provider-utils@5.0.0-beta.8
607
+ - @ai-sdk/anthropic@4.0.0-beta.13
608
+
609
+ ## 5.0.0-beta.16
610
+
611
+ ### Patch Changes
612
+
613
+ - 6d8716c: feat(bedrock): add support for service tier for model inference
614
+
615
+ ## 5.0.0-beta.15
616
+
617
+ ### Patch Changes
618
+
619
+ - 4b20a5d: fix(provider/amazon-bedrock): transform bedrock/anthropic error responses to anthropic format
620
+
621
+ ## 5.0.0-beta.14
622
+
623
+ ### Patch Changes
624
+
625
+ - b0c59e8: fix(amazon-bedrock): preserve reasoning text when signature is present
626
+
627
+ ## 5.0.0-beta.13
628
+
629
+ ### Patch Changes
630
+
631
+ - 1921625: fix(provider/amazon-bedrock): add tool search beta for Anthropic
632
+
633
+ ## 5.0.0-beta.12
634
+
635
+ ### Patch Changes
636
+
637
+ - Updated dependencies [1f509d4]
638
+ - @ai-sdk/provider-utils@5.0.0-beta.7
639
+ - @ai-sdk/provider@4.0.0-beta.5
640
+ - @ai-sdk/anthropic@4.0.0-beta.12
641
+
642
+ ## 5.0.0-beta.11
643
+
644
+ ### Patch Changes
645
+
646
+ - Updated dependencies [0ee8aec]
647
+ - @ai-sdk/anthropic@4.0.0-beta.11
648
+
649
+ ## 5.0.0-beta.10
650
+
651
+ ### Patch Changes
652
+
653
+ - 3887c70: feat(provider): add new top-level reasoning parameter to spec and support it in `generateText` and `streamText`
654
+ - Updated dependencies [3887c70]
655
+ - @ai-sdk/provider-utils@5.0.0-beta.6
656
+ - @ai-sdk/anthropic@4.0.0-beta.10
657
+ - @ai-sdk/provider@4.0.0-beta.4
658
+
659
+ ## 5.0.0-beta.9
660
+
661
+ ### Patch Changes
662
+
663
+ - Updated dependencies [776b617]
664
+ - @ai-sdk/provider-utils@5.0.0-beta.5
665
+ - @ai-sdk/provider@4.0.0-beta.3
666
+ - @ai-sdk/anthropic@4.0.0-beta.9
667
+
668
+ ## 5.0.0-beta.8
669
+
670
+ ### Patch Changes
671
+
672
+ - Updated dependencies [61753c3]
673
+ - @ai-sdk/provider-utils@5.0.0-beta.4
674
+ - @ai-sdk/anthropic@4.0.0-beta.8
675
+
3
676
  ## 5.0.0-beta.7
4
677
 
5
678
  ### Patch Changes
@@ -660,13 +1333,13 @@
660
1333
  Before
661
1334
 
662
1335
  ```ts
663
- model.textEmbeddingModel('my-model-id');
1336
+ model.textEmbeddingModel("my-model-id");
664
1337
  ```
665
1338
 
666
1339
  After
667
1340
 
668
1341
  ```ts
669
- model.embeddingModel('my-model-id');
1342
+ model.embeddingModel("my-model-id");
670
1343
  ```
671
1344
 
672
1345
  - 2625a04: feat(openai); update spec for mcp approval
@@ -1058,13 +1731,13 @@
1058
1731
  Before
1059
1732
 
1060
1733
  ```ts
1061
- model.textEmbeddingModel('my-model-id');
1734
+ model.textEmbeddingModel("my-model-id");
1062
1735
  ```
1063
1736
 
1064
1737
  After
1065
1738
 
1066
1739
  ```ts
1067
- model.embeddingModel('my-model-id');
1740
+ model.embeddingModel("my-model-id");
1068
1741
  ```
1069
1742
 
1070
1743
  - Updated dependencies [8d9e8ad]
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  The **[Amazon Bedrock provider](https://ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock)** for the [AI SDK](https://ai-sdk.dev/docs)
4
4
  contains language model support for the Amazon Bedrock [converse API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html).
5
5
 
6
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Amazon Bedrock (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
7
+
6
8
  ## Setup
7
9
 
8
10
  The Amazon Bedrock provider is available in the `@ai-sdk/amazon-bedrock` module. You can install it with