@ai-sdk/amazon-bedrock 5.0.0-beta.8 → 5.0.0-beta.86

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