@fairyhunter13/ai-anthropic 3.0.58-fork.1

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 (53) hide show
  1. package/CHANGELOG.md +2521 -0
  2. package/LICENSE +13 -0
  3. package/README.md +43 -0
  4. package/dist/index.d.mts +1099 -0
  5. package/dist/index.d.ts +1099 -0
  6. package/dist/index.js +5222 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/index.mjs +5298 -0
  9. package/dist/index.mjs.map +1 -0
  10. package/dist/internal/index.d.mts +960 -0
  11. package/dist/internal/index.d.ts +960 -0
  12. package/dist/internal/index.js +5122 -0
  13. package/dist/internal/index.js.map +1 -0
  14. package/dist/internal/index.mjs +5190 -0
  15. package/dist/internal/index.mjs.map +1 -0
  16. package/docs/05-anthropic.mdx +1321 -0
  17. package/internal.d.ts +1 -0
  18. package/package.json +83 -0
  19. package/src/anthropic-error.ts +26 -0
  20. package/src/anthropic-message-metadata.ts +143 -0
  21. package/src/anthropic-messages-api.ts +1348 -0
  22. package/src/anthropic-messages-language-model.ts +2407 -0
  23. package/src/anthropic-messages-options.ts +267 -0
  24. package/src/anthropic-prepare-tools.ts +404 -0
  25. package/src/anthropic-provider.ts +177 -0
  26. package/src/anthropic-tools.ts +238 -0
  27. package/src/convert-anthropic-messages-usage.ts +73 -0
  28. package/src/convert-to-anthropic-messages-prompt.ts +1144 -0
  29. package/src/forward-anthropic-container-id-from-last-step.ts +38 -0
  30. package/src/get-cache-control.ts +63 -0
  31. package/src/index.ts +17 -0
  32. package/src/internal/index.ts +4 -0
  33. package/src/map-anthropic-stop-reason.ts +30 -0
  34. package/src/tool/bash_20241022.ts +33 -0
  35. package/src/tool/bash_20250124.ts +33 -0
  36. package/src/tool/code-execution_20250522.ts +61 -0
  37. package/src/tool/code-execution_20250825.ts +281 -0
  38. package/src/tool/code-execution_20260120.ts +315 -0
  39. package/src/tool/computer_20241022.ts +87 -0
  40. package/src/tool/computer_20250124.ts +130 -0
  41. package/src/tool/computer_20251124.ts +151 -0
  42. package/src/tool/memory_20250818.ts +62 -0
  43. package/src/tool/text-editor_20241022.ts +69 -0
  44. package/src/tool/text-editor_20250124.ts +69 -0
  45. package/src/tool/text-editor_20250429.ts +70 -0
  46. package/src/tool/text-editor_20250728.ts +86 -0
  47. package/src/tool/tool-search-bm25_20251119.ts +99 -0
  48. package/src/tool/tool-search-regex_20251119.ts +111 -0
  49. package/src/tool/web-fetch-20250910.ts +145 -0
  50. package/src/tool/web-fetch-20260209.ts +145 -0
  51. package/src/tool/web-search_20250305.ts +136 -0
  52. package/src/tool/web-search_20260209.ts +136 -0
  53. package/src/version.ts +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,2521 @@
1
+ # @ai-sdk/anthropic
2
+
3
+ ## 3.0.58
4
+
5
+ ### Patch Changes
6
+
7
+ - 3fb4e70: feat(anthropic): support eagerInputStreaming option for fine-grained tool streaming
8
+ - Updated dependencies [ad4cfc2]
9
+ - @ai-sdk/provider-utils@4.0.19
10
+
11
+ ## 3.0.57
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [824b295]
16
+ - @ai-sdk/provider-utils@4.0.18
17
+
18
+ ## 3.0.56
19
+
20
+ ### Patch Changes
21
+
22
+ - e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream providers
23
+ - e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream provider
24
+
25
+ ## 3.0.55
26
+
27
+ ### Patch Changes
28
+
29
+ - 7531e72: fix(provider/anthropic): handle encrypted_code_execution_result for multi-turn with web_fetch/web_search 20260209
30
+
31
+ ## 3.0.54
32
+
33
+ ### Patch Changes
34
+
35
+ - 56c67d5: feat(provider/anthropic): add support for Anthropic web tools `web_fetch_20260209` and `web_search_20260209`
36
+
37
+ ## 3.0.53
38
+
39
+ ### Patch Changes
40
+
41
+ - 89caf28: fix(openai-compat): decode base64 string data
42
+
43
+ ## 3.0.52
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [08336f1]
48
+ - @ai-sdk/provider-utils@4.0.17
49
+
50
+ ## 3.0.51
51
+
52
+ ### Patch Changes
53
+
54
+ - 64a8fae: chore: remove obsolete model IDs for Anthropic, Google, OpenAI, xAI
55
+
56
+ ## 3.0.50
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [58bc42d]
61
+ - @ai-sdk/provider-utils@4.0.16
62
+
63
+ ## 3.0.49
64
+
65
+ ### Patch Changes
66
+
67
+ - d98d9ba: Migrated deprecated `output_format` parameter to `output_config.format` for structured outputs + Enabled native structured output support for Bedrock Anthropic models via `output_config.format`.
68
+
69
+ ## 3.0.48
70
+
71
+ ### Patch Changes
72
+
73
+ - 2164cdf: feat(anthropic): add the new code_execution tool
74
+
75
+ ## 3.0.47
76
+
77
+ ### Patch Changes
78
+
79
+ - 17978c6: Pass `cacheControl` provider option as top-level `cache_control` in Anthropic API request body to support automatic caching.
80
+
81
+ ## 3.0.46
82
+
83
+ ### Patch Changes
84
+
85
+ - b094c07: fix compaction_delta streaming schema to allow null content
86
+
87
+ ## 3.0.45
88
+
89
+ ### Patch Changes
90
+
91
+ - 2a1c664: feat(provider/anthropic): add support for new Claude Sonnet 4.6 model
92
+
93
+ ## 3.0.44
94
+
95
+ ### Patch Changes
96
+
97
+ - 23ac4a3: fix(provider/anthropic): minor follow up to support no-op speed standard
98
+
99
+ ## 3.0.43
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies [4024a3a]
104
+ - @ai-sdk/provider-utils@4.0.15
105
+
106
+ ## 3.0.42
107
+
108
+ ### Patch Changes
109
+
110
+ - 99fbed8: feat: normalize provider specific model options type names and ensure they are exported
111
+
112
+ ## 3.0.41
113
+
114
+ ### Patch Changes
115
+
116
+ - c60b393: feat(anthropic): add the new compaction feature
117
+
118
+ ## 3.0.40
119
+
120
+ ### Patch Changes
121
+
122
+ - 8c2b1e1: fix(provider/anthropic): include actual raw usage data for `response.usage.raw` when streaming
123
+
124
+ ## 3.0.39
125
+
126
+ ### Patch Changes
127
+
128
+ - 0a0d29c: feat(anthropic): add support for Opus 4.6 fast mode
129
+
130
+ ## 3.0.38
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [7168375]
135
+ - @ai-sdk/provider@3.0.8
136
+ - @ai-sdk/provider-utils@4.0.14
137
+
138
+ ## 3.0.37
139
+
140
+ ### Patch Changes
141
+
142
+ - e288302: feat(anthropic): add support for Opus 4.6
143
+
144
+ ## 3.0.36
145
+
146
+ ### Patch Changes
147
+
148
+ - 1652320: feat(anthropic): support custom tool-reference content for deferred tool loading
149
+
150
+ ## 3.0.35
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [53f6731]
155
+ - @ai-sdk/provider@3.0.7
156
+ - @ai-sdk/provider-utils@4.0.13
157
+
158
+ ## 3.0.34
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [96936e5]
163
+ - @ai-sdk/provider-utils@4.0.12
164
+
165
+ ## 3.0.33
166
+
167
+ ### Patch Changes
168
+
169
+ - 445cbe3: fix streaming context_management field location - was incorrectly expected inside delta object but API returns it at message_delta root level
170
+
171
+ ## 3.0.32
172
+
173
+ ### Patch Changes
174
+
175
+ - c33343b: fix(anthropic): add missing param in tool schema
176
+
177
+ ## 3.0.31
178
+
179
+ ### Patch Changes
180
+
181
+ - Updated dependencies [2810850]
182
+ - @ai-sdk/provider-utils@4.0.11
183
+ - @ai-sdk/provider@3.0.6
184
+
185
+ ## 3.0.30
186
+
187
+ ### Patch Changes
188
+
189
+ - 1524271: chore: add skill information to README files
190
+
191
+ ## 3.0.29
192
+
193
+ ### Patch Changes
194
+
195
+ - b9d105f: Fix cache usage reporting for anthropic stream
196
+
197
+ ## 3.0.28
198
+
199
+ ### Patch Changes
200
+
201
+ - 2445da4: fix(provider/anthropic): populate outputTokens.text field in usage
202
+
203
+ ## 3.0.27
204
+
205
+ ### Patch Changes
206
+
207
+ - 572ea12: feat(anthropic): allow custom/dynamic key for providerOptions
208
+
209
+ ## 3.0.26
210
+
211
+ ### Patch Changes
212
+
213
+ - 2c70b90: chore: update provider docs
214
+
215
+ ## 3.0.25
216
+
217
+ ### Patch Changes
218
+
219
+ - 0bb9bcd: feat(provider/anthropic): add computer_20251124 tool for claude opus 4.5
220
+
221
+ ## 3.0.24
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [462ad00]
226
+ - @ai-sdk/provider-utils@4.0.10
227
+
228
+ ## 3.0.23
229
+
230
+ ### Patch Changes
231
+
232
+ - 4de5a1d: chore: excluded tests from src folder in npm package
233
+ - Updated dependencies [4de5a1d]
234
+ - @ai-sdk/provider@3.0.5
235
+ - @ai-sdk/provider-utils@4.0.9
236
+
237
+ ## 3.0.22
238
+
239
+ ### Patch Changes
240
+
241
+ - 8ccf04b: Add `authToken` option to support `Authorization: Bearer` authentication as an alternative to `x-api-key` header authentication.
242
+
243
+ ## 3.0.21
244
+
245
+ ### Patch Changes
246
+
247
+ - 662d359: feat(anthropic): deferred results for tool search tool
248
+
249
+ ## 3.0.20
250
+
251
+ ### Patch Changes
252
+
253
+ - 2b8369d: chore: add docs to package dist
254
+
255
+ ## 3.0.19
256
+
257
+ ### Patch Changes
258
+
259
+ - 8dc54db: chore: add src folders to package bundle
260
+
261
+ ## 3.0.18
262
+
263
+ ### Patch Changes
264
+
265
+ - c10bd49: fix(anthropic): handle web_search_result_location citations and add webFetch documents to citationDocuments
266
+
267
+ ## 3.0.17
268
+
269
+ ### Patch Changes
270
+
271
+ - 4729bed: Fix JSON parsing crash when handling Anthropic web_fetch tool error results
272
+
273
+ ## 3.0.16
274
+
275
+ ### Patch Changes
276
+
277
+ - d36fa72: Not sending structured output beta header for json response tool
278
+
279
+ ## 3.0.15
280
+
281
+ ### Patch Changes
282
+
283
+ - Updated dependencies [5c090e7]
284
+ - @ai-sdk/provider@3.0.4
285
+ - @ai-sdk/provider-utils@4.0.8
286
+
287
+ ## 3.0.14
288
+
289
+ ### Patch Changes
290
+
291
+ - Updated dependencies [46f46e4]
292
+ - @ai-sdk/provider-utils@4.0.7
293
+
294
+ ## 3.0.13
295
+
296
+ ### Patch Changes
297
+
298
+ - Updated dependencies [1b11dcb]
299
+ - @ai-sdk/provider-utils@4.0.6
300
+ - @ai-sdk/provider@3.0.3
301
+
302
+ ## 3.0.12
303
+
304
+ ### Patch Changes
305
+
306
+ - Updated dependencies [34d1c8a]
307
+ - @ai-sdk/provider-utils@4.0.5
308
+
309
+ ## 3.0.11
310
+
311
+ ### Patch Changes
312
+
313
+ - 8c1c6e3: fix(anthropic): add application/json type regex matching
314
+
315
+ ## 3.0.10
316
+
317
+ ### Patch Changes
318
+
319
+ - 02d9b68: fix `input_tokens` compatibility
320
+
321
+ ## 3.0.9
322
+
323
+ ### Patch Changes
324
+
325
+ - de2399b: fix(anthropic): assign type urls in file parts correctly
326
+
327
+ ## 3.0.8
328
+
329
+ ### Patch Changes
330
+
331
+ - bee4f82: fix(anthropic): enable structured output support for claude-haiku-4-5
332
+
333
+ This fixes an issue where the `strict: true` property was not included in the request body when using tools with Claude Haiku 4.5, because `supportsStructuredOutput` was incorrectly set to `false` for this model.
334
+
335
+ Claude Haiku 4.5 supports structured outputs, so the `strict` property should be forwarded to the Anthropic API when specified on tools.
336
+
337
+ ## 3.0.7
338
+
339
+ ### Patch Changes
340
+
341
+ - Updated dependencies [d937c8f]
342
+ - @ai-sdk/provider@3.0.2
343
+ - @ai-sdk/provider-utils@4.0.4
344
+
345
+ ## 3.0.6
346
+
347
+ ### Patch Changes
348
+
349
+ - 2231e84: fix(anthropic): implement temperature/topP mutual exclusivity
350
+
351
+ Resolves the Anthropic API breaking change where sampling parameters must use only `temperature` OR `top_p`, not both. When both parameters are provided:
352
+
353
+ - Temperature takes priority and topP is ignored
354
+ - A warning is added to inform users: "topP is not supported when temperature is set. topP is ignored."
355
+ - The validation only runs when thinking mode is not enabled (thinking mode has its own parameter validation)
356
+
357
+ See Anthropic migration guide: https://platform.claude.com/docs/en/about-claude/models/migrating-to-claude-4
358
+
359
+ ## 3.0.5
360
+
361
+ ### Patch Changes
362
+
363
+ - Updated dependencies [0b429d4]
364
+ - @ai-sdk/provider-utils@4.0.3
365
+
366
+ ## 3.0.4
367
+
368
+ ### Patch Changes
369
+
370
+ - bf39dac: Fix: Use provider tool name in Tool Search Tool results
371
+
372
+ ## 3.0.3
373
+
374
+ ### Patch Changes
375
+
376
+ - 77b760d: fix(anthropic): support deferred results for web search/fetch tool
377
+
378
+ ## 3.0.2
379
+
380
+ ### Patch Changes
381
+
382
+ - 863d34f: fix: trigger release to update `@latest`
383
+ - Updated dependencies [863d34f]
384
+ - @ai-sdk/provider@3.0.1
385
+ - @ai-sdk/provider-utils@4.0.2
386
+
387
+ ## 3.0.1
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies [29264a3]
392
+ - @ai-sdk/provider-utils@4.0.1
393
+
394
+ ## 3.0.0
395
+
396
+ ### Major Changes
397
+
398
+ - dee8b05: ai SDK 6 beta
399
+
400
+ ### Minor Changes
401
+
402
+ - 78928cb: release: start 5.1 beta
403
+
404
+ ### Patch Changes
405
+
406
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
407
+ - 0adc679: feat(provider): shared spec v3
408
+ - 50b70d6: feat(anthropic): add programmatic tool calling
409
+ - b8ea36e: feat(provider/anthropic): Anthropic-native structured outputs
410
+ - ed537e1: Add support for pdf file in tool result in anthropic
411
+ - 2109385: 'fix(anthropic): Opus 4.5 `maxOutputTokens` bump `32000` -> `64000`'
412
+ - 7c4328e: Adds url-based pdf and image support for anthropic tool results
413
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
414
+
415
+ Before
416
+
417
+ ```ts
418
+ model.textEmbeddingModel('my-model-id');
419
+ ```
420
+
421
+ After
422
+
423
+ ```ts
424
+ model.embeddingModel('my-model-id');
425
+ ```
426
+
427
+ - f33a018: chore: add model ID for Haiku 4.5
428
+ - b2dbfbf: add context_management for anthropic
429
+ - dce03c4: feat: tool input examples
430
+ - 2625a04: feat(openai); update spec for mcp approval
431
+ - 11e4abe: feat(provider/anthropic): web search tool updates
432
+ - f13958c: chore(antropic): allow custom names for provider-defined tools
433
+ - afb00e3: feat(provider/anthropic): add text_editor_20250728 tool support
434
+
435
+ Add text_editor_20250728 tool for Claude 4 models (Sonnet 4, Opus 4, Opus 4.1) with optional max_characters parameter and no undo_edit command support.
436
+
437
+ - 95f65c2: chore: use import \* from zod/v4
438
+ - 954c356: feat(openai): allow custom names for provider-defined tools
439
+ - 9e35785: fix(anthropic): send {} as tool input when streaming tool calls without arguments
440
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
441
+ - a5f77a6: fix(anthropic): remove outdated tool name docs
442
+ - ca07285: feat(anthropic): add prompt caching validation
443
+ - a5a8db4: chore: add model ID for Sonnet 4.5
444
+ - 1742445: Support for custom provider name in google and anthropic providers
445
+ - e8109d3: feat: tool execution approval
446
+ - 87db851: fix(vertex/anthropic): passing beta header only for structured outputs
447
+ - f6603b7: fix(provider/anthropic): correct raw usage information
448
+ - ed329cb: feat: `Provider-V3`
449
+ - 3bd2689: feat: extended token usage
450
+ - 1cad0ab: feat: add provider version to user-agent header
451
+ - 2049c5b: Fix handling of error in web fetch tool in anthropic
452
+ - 4c5a6be: feat(provider/anthropic): default and limit maxTokens based on model
453
+ - 9e1e758: fix(anthropic): use default thinking budget when unspecified
454
+ - 589a4ee: fix(anthropic): simplify pulling first chunk
455
+ - 8dac895: feat: `LanguageModelV3`
456
+ - 6f845b4: Add support for 2025-08-25 code execution tool
457
+ - 9354297: feat(provider/anthropic): add support for Agent Skills
458
+ - 03849b0: throw 500 error when the first stream chunk is an error
459
+ - 0ae783e: feat(anthropic): add the new tool search tools
460
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
461
+ - eb56fc6: fix(anthropic): pull first chunk without async IIFE
462
+ - fa35e95: feat(provider/anthropic): add web fetch tool
463
+ - 80894b3: add return `file_id` property for anthropic code-execution-20250825 to download output files.
464
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
465
+ - 81d4308: feat(provider/anthropic): mcp connector support
466
+ - 6fc35cb: Retain user-supplied betas.
467
+ - f4db7b5: feat(provider/anthropic): expose container from response in provider metadata
468
+ - 6c38080: fix(anthropic): support pdf responses in web_fetch_tool_result schema validation
469
+ - 4616b86: chore: update zod peer depenedency version
470
+ - dedf206: feat(provider/anthropic): expose stop_sequence in provider metadata
471
+ - 983e394: chore(provider/anthropic): add missing provider options jsdoc
472
+ - 0e38a79: support ANTHROPIC_BASE_URL
473
+ - cf4e2a9: Add support for tool calling with structured output
474
+ - f4e4a95: feat(provider/anthropic): enable fine grained tool streaming by default
475
+ - 21f378c: fix(provider/anthropic): do not limit maxTokens when model id is unknown
476
+ - c5440c5: chore(provider/anthropic): update anthropic model ids
477
+ - 1d15673: fix(provider/anthropic): clamp temperature to valid 0-1 range with warnings
478
+ - 9cff587: chore(provider/anthropic): lazy schema loading
479
+ - d129d89: chore(anthropic): remove unnecessary doc
480
+ - 3794514: feat: flexible tool output content support
481
+ - e1e2821: fix(provider/anthropic): support null title in web fetch tool
482
+ - cbf52cd: feat: expose raw finish reason
483
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
484
+ - d08308b: feat(provider/anthropic): memory tool
485
+ - 05d5b9a: fix(anthropic): make title field nullable in web_fetch and web_search tool output schemas
486
+ - 1bd7d32: feat: tool-specific strict mode
487
+ - 83aaad8: Opus 4.5 and `effort` provider option
488
+ - Updated dependencies
489
+ - @ai-sdk/provider@3.0.0
490
+ - @ai-sdk/provider-utils@4.0.0
491
+
492
+ ## 3.0.0-beta.98
493
+
494
+ ### Patch Changes
495
+
496
+ - 2049c5b: Fix handling of error in web fetch tool in anthropic
497
+
498
+ ## 3.0.0-beta.97
499
+
500
+ ### Patch Changes
501
+
502
+ - Updated dependencies [475189e]
503
+ - @ai-sdk/provider@3.0.0-beta.32
504
+ - @ai-sdk/provider-utils@4.0.0-beta.59
505
+
506
+ ## 3.0.0-beta.96
507
+
508
+ ### Patch Changes
509
+
510
+ - 2625a04: feat(openai); update spec for mcp approval
511
+ - Updated dependencies [2625a04]
512
+ - @ai-sdk/provider@3.0.0-beta.31
513
+ - @ai-sdk/provider-utils@4.0.0-beta.58
514
+
515
+ ## 3.0.0-beta.95
516
+
517
+ ### Patch Changes
518
+
519
+ - cbf52cd: feat: expose raw finish reason
520
+ - Updated dependencies [cbf52cd]
521
+ - @ai-sdk/provider@3.0.0-beta.30
522
+ - @ai-sdk/provider-utils@4.0.0-beta.57
523
+
524
+ ## 3.0.0-beta.94
525
+
526
+ ### Patch Changes
527
+
528
+ - Updated dependencies [9549c9e]
529
+ - @ai-sdk/provider@3.0.0-beta.29
530
+ - @ai-sdk/provider-utils@4.0.0-beta.56
531
+
532
+ ## 3.0.0-beta.93
533
+
534
+ ### Patch Changes
535
+
536
+ - 50b70d6: feat(anthropic): add programmatic tool calling
537
+ - Updated dependencies [50b70d6]
538
+ - @ai-sdk/provider-utils@4.0.0-beta.55
539
+
540
+ ## 3.0.0-beta.92
541
+
542
+ ### Patch Changes
543
+
544
+ - Updated dependencies [9061dc0]
545
+ - @ai-sdk/provider-utils@4.0.0-beta.54
546
+ - @ai-sdk/provider@3.0.0-beta.28
547
+
548
+ ## 3.0.0-beta.91
549
+
550
+ ### Patch Changes
551
+
552
+ - d129d89: chore(anthropic): remove unnecessary doc
553
+
554
+ ## 3.0.0-beta.90
555
+
556
+ ### Patch Changes
557
+
558
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
559
+ - Updated dependencies [366f50b]
560
+ - @ai-sdk/provider@3.0.0-beta.27
561
+ - @ai-sdk/provider-utils@4.0.0-beta.53
562
+
563
+ ## 3.0.0-beta.89
564
+
565
+ ### Patch Changes
566
+
567
+ - Updated dependencies [763d04a]
568
+ - @ai-sdk/provider-utils@4.0.0-beta.52
569
+
570
+ ## 3.0.0-beta.88
571
+
572
+ ### Patch Changes
573
+
574
+ - 87db851: fix(vertex/anthropic): passing beta header only for structured outputs
575
+
576
+ ## 3.0.0-beta.87
577
+
578
+ ### Patch Changes
579
+
580
+ - Updated dependencies [c1efac4]
581
+ - @ai-sdk/provider-utils@4.0.0-beta.51
582
+
583
+ ## 3.0.0-beta.86
584
+
585
+ ### Patch Changes
586
+
587
+ - Updated dependencies [32223c8]
588
+ - @ai-sdk/provider-utils@4.0.0-beta.50
589
+
590
+ ## 3.0.0-beta.85
591
+
592
+ ### Patch Changes
593
+
594
+ - Updated dependencies [83e5744]
595
+ - @ai-sdk/provider-utils@4.0.0-beta.49
596
+
597
+ ## 3.0.0-beta.84
598
+
599
+ ### Patch Changes
600
+
601
+ - Updated dependencies [960ec8f]
602
+ - @ai-sdk/provider-utils@4.0.0-beta.48
603
+
604
+ ## 3.0.0-beta.83
605
+
606
+ ### Patch Changes
607
+
608
+ - 6c38080: fix(anthropic): support pdf responses in web_fetch_tool_result schema validation
609
+
610
+ ## 3.0.0-beta.82
611
+
612
+ ### Patch Changes
613
+
614
+ - Updated dependencies [e9e157f]
615
+ - @ai-sdk/provider-utils@4.0.0-beta.47
616
+
617
+ ## 3.0.0-beta.81
618
+
619
+ ### Patch Changes
620
+
621
+ - Updated dependencies [81e29ab]
622
+ - @ai-sdk/provider-utils@4.0.0-beta.46
623
+
624
+ ## 3.0.0-beta.80
625
+
626
+ ### Patch Changes
627
+
628
+ - 05d5b9a: fix(anthropic): make title field nullable in web_fetch and web_search tool output schemas
629
+
630
+ ## 3.0.0-beta.79
631
+
632
+ ### Patch Changes
633
+
634
+ - 3bd2689: feat: extended token usage
635
+ - Updated dependencies [3bd2689]
636
+ - @ai-sdk/provider@3.0.0-beta.26
637
+ - @ai-sdk/provider-utils@4.0.0-beta.45
638
+
639
+ ## 3.0.0-beta.78
640
+
641
+ ### Patch Changes
642
+
643
+ - 9e1e758: fix(anthropic): use default thinking budget when unspecified
644
+
645
+ ## 3.0.0-beta.77
646
+
647
+ ### Patch Changes
648
+
649
+ - b2dbfbf: add context_management for anthropic
650
+
651
+ ## 3.0.0-beta.76
652
+
653
+ ### Patch Changes
654
+
655
+ - Updated dependencies [53f3368]
656
+ - @ai-sdk/provider@3.0.0-beta.25
657
+ - @ai-sdk/provider-utils@4.0.0-beta.44
658
+
659
+ ## 3.0.0-beta.75
660
+
661
+ ### Patch Changes
662
+
663
+ - 0ae783e: feat(anthropic): add the new tool search tools
664
+
665
+ ## 3.0.0-beta.74
666
+
667
+ ### Patch Changes
668
+
669
+ - dce03c4: feat: tool input examples
670
+ - Updated dependencies [dce03c4]
671
+ - @ai-sdk/provider-utils@4.0.0-beta.43
672
+ - @ai-sdk/provider@3.0.0-beta.24
673
+
674
+ ## 3.0.0-beta.73
675
+
676
+ ### Patch Changes
677
+
678
+ - Updated dependencies [3ed5519]
679
+ - @ai-sdk/provider-utils@4.0.0-beta.42
680
+
681
+ ## 3.0.0-beta.72
682
+
683
+ ### Patch Changes
684
+
685
+ - a5f77a6: fix(anthropic): remove outdated tool name docs
686
+
687
+ ## 3.0.0-beta.71
688
+
689
+ ### Patch Changes
690
+
691
+ - 1bd7d32: feat: tool-specific strict mode
692
+ - Updated dependencies [1bd7d32]
693
+ - @ai-sdk/provider-utils@4.0.0-beta.41
694
+ - @ai-sdk/provider@3.0.0-beta.23
695
+
696
+ ## 3.0.0-beta.70
697
+
698
+ ### Patch Changes
699
+
700
+ - f13958c: chore(antropic): allow custom names for provider-defined tools
701
+
702
+ ## 3.0.0-beta.69
703
+
704
+ ### Patch Changes
705
+
706
+ - 589a4ee: fix(anthropic): simplify pulling first chunk
707
+
708
+ ## 3.0.0-beta.68
709
+
710
+ ### Patch Changes
711
+
712
+ - 9e35785: fix(anthropic): send {} as tool input when streaming tool calls without arguments
713
+
714
+ ## 3.0.0-beta.67
715
+
716
+ ### Patch Changes
717
+
718
+ - eb56fc6: fix(anthropic): pull first chunk without async IIFE
719
+
720
+ ## 3.0.0-beta.66
721
+
722
+ ### Patch Changes
723
+
724
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
725
+ - Updated dependencies [544d4e8]
726
+ - @ai-sdk/provider-utils@4.0.0-beta.40
727
+ - @ai-sdk/provider@3.0.0-beta.22
728
+
729
+ ## 3.0.0-beta.65
730
+
731
+ ### Patch Changes
732
+
733
+ - 954c356: feat(openai): allow custom names for provider-defined tools
734
+ - Updated dependencies [954c356]
735
+ - @ai-sdk/provider-utils@4.0.0-beta.39
736
+ - @ai-sdk/provider@3.0.0-beta.21
737
+
738
+ ## 3.0.0-beta.64
739
+
740
+ ### Patch Changes
741
+
742
+ - 03849b0: throw 500 error when the first stream chunk is an error
743
+ - Updated dependencies [03849b0]
744
+ - @ai-sdk/provider-utils@4.0.0-beta.38
745
+
746
+ ## 3.0.0-beta.63
747
+
748
+ ### Patch Changes
749
+
750
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
751
+ - Updated dependencies [457318b]
752
+ - @ai-sdk/provider@3.0.0-beta.20
753
+ - @ai-sdk/provider-utils@4.0.0-beta.37
754
+
755
+ ## 3.0.0-beta.62
756
+
757
+ ### Patch Changes
758
+
759
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
760
+
761
+ Before
762
+
763
+ ```ts
764
+ model.textEmbeddingModel('my-model-id');
765
+ ```
766
+
767
+ After
768
+
769
+ ```ts
770
+ model.embeddingModel('my-model-id');
771
+ ```
772
+
773
+ - Updated dependencies [8d9e8ad]
774
+ - @ai-sdk/provider@3.0.0-beta.19
775
+ - @ai-sdk/provider-utils@4.0.0-beta.36
776
+
777
+ ## 3.0.0-beta.61
778
+
779
+ ### Patch Changes
780
+
781
+ - Updated dependencies [10d819b]
782
+ - @ai-sdk/provider@3.0.0-beta.18
783
+ - @ai-sdk/provider-utils@4.0.0-beta.35
784
+
785
+ ## 3.0.0-beta.60
786
+
787
+ ### Patch Changes
788
+
789
+ - 6fc35cb: Retain user-supplied betas.
790
+
791
+ ## 3.0.0-beta.59
792
+
793
+ ### Patch Changes
794
+
795
+ - 2109385: 'fix(anthropic): Opus 4.5 `maxOutputTokens` bump `32000` -> `64000`'
796
+
797
+ ## 3.0.0-beta.58
798
+
799
+ ### Patch Changes
800
+
801
+ - 83aaad8: Opus 4.5 and `effort` provider option
802
+
803
+ ## 3.0.0-beta.57
804
+
805
+ ### Patch Changes
806
+
807
+ - b8ea36e: feat(provider/anthropic): Anthropic-native structured outputs
808
+
809
+ ## 3.0.0-beta.56
810
+
811
+ ### Patch Changes
812
+
813
+ - 983e394: chore(provider/anthropic): add missing provider options jsdoc
814
+
815
+ ## 3.0.0-beta.55
816
+
817
+ ### Patch Changes
818
+
819
+ - Updated dependencies [db913bd]
820
+ - @ai-sdk/provider@3.0.0-beta.17
821
+ - @ai-sdk/provider-utils@4.0.0-beta.34
822
+
823
+ ## 3.0.0-beta.54
824
+
825
+ ### Patch Changes
826
+
827
+ - 1d15673: fix(provider/anthropic): clamp temperature to valid 0-1 range with warnings
828
+
829
+ ## 3.0.0-beta.53
830
+
831
+ ### Patch Changes
832
+
833
+ - Updated dependencies [b681d7d]
834
+ - @ai-sdk/provider@3.0.0-beta.16
835
+ - @ai-sdk/provider-utils@4.0.0-beta.33
836
+
837
+ ## 3.0.0-beta.52
838
+
839
+ ### Patch Changes
840
+
841
+ - Updated dependencies [32d8dbb]
842
+ - @ai-sdk/provider-utils@4.0.0-beta.32
843
+
844
+ ## 3.0.0-beta.51
845
+
846
+ ### Patch Changes
847
+
848
+ - 1742445: Support for custom provider name in google and anthropic providers
849
+
850
+ ## 3.0.0-beta.50
851
+
852
+ ### Patch Changes
853
+
854
+ - Updated dependencies [bb36798]
855
+ - @ai-sdk/provider@3.0.0-beta.15
856
+ - @ai-sdk/provider-utils@4.0.0-beta.31
857
+
858
+ ## 3.0.0-beta.49
859
+
860
+ ### Patch Changes
861
+
862
+ - Updated dependencies [4f16c37]
863
+ - @ai-sdk/provider-utils@4.0.0-beta.30
864
+
865
+ ## 3.0.0-beta.48
866
+
867
+ ### Patch Changes
868
+
869
+ - Updated dependencies [af3780b]
870
+ - @ai-sdk/provider@3.0.0-beta.14
871
+ - @ai-sdk/provider-utils@4.0.0-beta.29
872
+
873
+ ## 3.0.0-beta.47
874
+
875
+ ### Patch Changes
876
+
877
+ - Updated dependencies [016b111]
878
+ - @ai-sdk/provider-utils@4.0.0-beta.28
879
+
880
+ ## 3.0.0-beta.46
881
+
882
+ ### Patch Changes
883
+
884
+ - Updated dependencies [37c58a0]
885
+ - @ai-sdk/provider@3.0.0-beta.13
886
+ - @ai-sdk/provider-utils@4.0.0-beta.27
887
+
888
+ ## 3.0.0-beta.45
889
+
890
+ ### Patch Changes
891
+
892
+ - f4e4a95: feat(provider/anthropic): enable fine grained tool streaming by default
893
+
894
+ ## 3.0.0-beta.44
895
+
896
+ ### Patch Changes
897
+
898
+ - cf4e2a9: Add support for tool calling with structured output
899
+
900
+ ## 3.0.0-beta.43
901
+
902
+ ### Patch Changes
903
+
904
+ - Updated dependencies [d1bdadb]
905
+ - @ai-sdk/provider@3.0.0-beta.12
906
+ - @ai-sdk/provider-utils@4.0.0-beta.26
907
+
908
+ ## 3.0.0-beta.42
909
+
910
+ ### Patch Changes
911
+
912
+ - Updated dependencies [4c44a5b]
913
+ - @ai-sdk/provider@3.0.0-beta.11
914
+ - @ai-sdk/provider-utils@4.0.0-beta.25
915
+
916
+ ## 3.0.0-beta.41
917
+
918
+ ### Patch Changes
919
+
920
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
921
+ - Updated dependencies [0c3b58b]
922
+ - @ai-sdk/provider@3.0.0-beta.10
923
+ - @ai-sdk/provider-utils@4.0.0-beta.24
924
+
925
+ ## 3.0.0-beta.40
926
+
927
+ ### Patch Changes
928
+
929
+ - Updated dependencies [a755db5]
930
+ - @ai-sdk/provider@3.0.0-beta.9
931
+ - @ai-sdk/provider-utils@4.0.0-beta.23
932
+
933
+ ## 3.0.0-beta.39
934
+
935
+ ### Patch Changes
936
+
937
+ - Updated dependencies [58920e0]
938
+ - @ai-sdk/provider-utils@4.0.0-beta.22
939
+
940
+ ## 3.0.0-beta.38
941
+
942
+ ### Patch Changes
943
+
944
+ - Updated dependencies [293a6b7]
945
+ - @ai-sdk/provider-utils@4.0.0-beta.21
946
+
947
+ ## 3.0.0-beta.37
948
+
949
+ ### Patch Changes
950
+
951
+ - 7c4328e: Adds url-based pdf and image support for anthropic tool results
952
+
953
+ ## 3.0.0-beta.36
954
+
955
+ ### Patch Changes
956
+
957
+ - 21f378c: fix(provider/anthropic): do not limit maxTokens when model id is unknown
958
+
959
+ ## 3.0.0-beta.35
960
+
961
+ ### Patch Changes
962
+
963
+ - 80894b3: add return `file_id` property for anthropic code-execution-20250825 to download output files.
964
+
965
+ ## 3.0.0-beta.34
966
+
967
+ ### Patch Changes
968
+
969
+ - Updated dependencies [fca786b]
970
+ - @ai-sdk/provider-utils@4.0.0-beta.20
971
+
972
+ ## 3.0.0-beta.33
973
+
974
+ ### Patch Changes
975
+
976
+ - 0e38a79: support ANTHROPIC_BASE_URL
977
+
978
+ ## 3.0.0-beta.32
979
+
980
+ ### Patch Changes
981
+
982
+ - f4db7b5: feat(provider/anthropic): expose container from response in provider metadata
983
+
984
+ ## 3.0.0-beta.31
985
+
986
+ ### Patch Changes
987
+
988
+ - ca07285: feat(anthropic): add prompt caching validation
989
+
990
+ ## 3.0.0-beta.30
991
+
992
+ ### Patch Changes
993
+
994
+ - 9354297: feat(provider/anthropic): add support for Agent Skills
995
+
996
+ ## 3.0.0-beta.29
997
+
998
+ ### Patch Changes
999
+
1000
+ - 3794514: feat: flexible tool output content support
1001
+ - Updated dependencies [3794514]
1002
+ - @ai-sdk/provider-utils@4.0.0-beta.19
1003
+ - @ai-sdk/provider@3.0.0-beta.8
1004
+
1005
+ ## 3.0.0-beta.28
1006
+
1007
+ ### Patch Changes
1008
+
1009
+ - 81d4308: feat(provider/anthropic): mcp connector support
1010
+ - Updated dependencies [81d4308]
1011
+ - @ai-sdk/provider@3.0.0-beta.7
1012
+ - @ai-sdk/provider-utils@4.0.0-beta.18
1013
+
1014
+ ## 3.0.0-beta.27
1015
+
1016
+ ### Patch Changes
1017
+
1018
+ - 4c5a6be: feat(provider/anthropic): default and limit maxTokens based on model
1019
+
1020
+ ## 3.0.0-beta.26
1021
+
1022
+ ### Patch Changes
1023
+
1024
+ - f33a018: chore: add model ID for Haiku 4.5
1025
+
1026
+ ## 3.0.0-beta.25
1027
+
1028
+ ### Patch Changes
1029
+
1030
+ - Updated dependencies [703459a]
1031
+ - @ai-sdk/provider-utils@4.0.0-beta.17
1032
+
1033
+ ## 3.0.0-beta.24
1034
+
1035
+ ### Patch Changes
1036
+
1037
+ - d08308b: feat(provider/anthropic): memory tool
1038
+
1039
+ ## 3.0.0-beta.23
1040
+
1041
+ ### Patch Changes
1042
+
1043
+ - 6f845b4: Add support for 2025-08-25 code execution tool
1044
+
1045
+ ## 3.0.0-beta.22
1046
+
1047
+ ### Patch Changes
1048
+
1049
+ - ed537e1: Add support for pdf file in tool result in anthropic
1050
+
1051
+ ## 3.0.0-beta.21
1052
+
1053
+ ### Patch Changes
1054
+
1055
+ - Updated dependencies [6306603]
1056
+ - @ai-sdk/provider-utils@4.0.0-beta.16
1057
+
1058
+ ## 3.0.0-beta.20
1059
+
1060
+ ### Patch Changes
1061
+
1062
+ - Updated dependencies [f0b2157]
1063
+ - @ai-sdk/provider-utils@4.0.0-beta.15
1064
+
1065
+ ## 3.0.0-beta.19
1066
+
1067
+ ### Patch Changes
1068
+
1069
+ - Updated dependencies [3b1d015]
1070
+ - @ai-sdk/provider-utils@4.0.0-beta.14
1071
+
1072
+ ## 3.0.0-beta.18
1073
+
1074
+ ### Patch Changes
1075
+
1076
+ - Updated dependencies [d116b4b]
1077
+ - @ai-sdk/provider-utils@4.0.0-beta.13
1078
+
1079
+ ## 3.0.0-beta.17
1080
+
1081
+ ### Patch Changes
1082
+
1083
+ - Updated dependencies [7e32fea]
1084
+ - @ai-sdk/provider-utils@4.0.0-beta.12
1085
+
1086
+ ## 3.0.0-beta.16
1087
+
1088
+ ### Patch Changes
1089
+
1090
+ - 9cff587: chore(provider/anthropic): lazy schema loading
1091
+
1092
+ ## 3.0.0-beta.15
1093
+
1094
+ ### Patch Changes
1095
+
1096
+ - 95f65c2: chore: use import \* from zod/v4
1097
+ - Updated dependencies
1098
+ - @ai-sdk/provider-utils@4.0.0-beta.11
1099
+
1100
+ ## 3.0.0-beta.14
1101
+
1102
+ ### Major Changes
1103
+
1104
+ - dee8b05: ai SDK 6 beta
1105
+
1106
+ ### Patch Changes
1107
+
1108
+ - Updated dependencies [dee8b05]
1109
+ - @ai-sdk/provider@3.0.0-beta.6
1110
+ - @ai-sdk/provider-utils@4.0.0-beta.10
1111
+
1112
+ ## 2.1.0-beta.13
1113
+
1114
+ ### Patch Changes
1115
+
1116
+ - Updated dependencies [521c537]
1117
+ - @ai-sdk/provider-utils@3.1.0-beta.9
1118
+
1119
+ ## 2.1.0-beta.12
1120
+
1121
+ ### Patch Changes
1122
+
1123
+ - Updated dependencies [e06565c]
1124
+ - @ai-sdk/provider-utils@3.1.0-beta.8
1125
+
1126
+ ## 2.1.0-beta.11
1127
+
1128
+ ### Patch Changes
1129
+
1130
+ - e8109d3: feat: tool execution approval
1131
+ - Updated dependencies
1132
+ - @ai-sdk/provider@2.1.0-beta.5
1133
+ - @ai-sdk/provider-utils@3.1.0-beta.7
1134
+
1135
+ ## 2.1.0-beta.10
1136
+
1137
+ ### Patch Changes
1138
+
1139
+ - dedf206: feat(provider/anthropic): expose stop_sequence in provider metadata
1140
+
1141
+ ## 2.1.0-beta.9
1142
+
1143
+ ### Patch Changes
1144
+
1145
+ - 0adc679: feat(provider): shared spec v3
1146
+ - Updated dependencies
1147
+ - @ai-sdk/provider-utils@3.1.0-beta.6
1148
+ - @ai-sdk/provider@2.1.0-beta.4
1149
+
1150
+ ## 2.1.0-beta.8
1151
+
1152
+ ### Patch Changes
1153
+
1154
+ - a5a8db4: chore: add model ID for Sonnet 4.5
1155
+
1156
+ ## 2.1.0-beta.7
1157
+
1158
+ ### Patch Changes
1159
+
1160
+ - e1e2821: fix(provider/anthropic): support null title in web fetch tool
1161
+
1162
+ ## 2.1.0-beta.6
1163
+
1164
+ ### Patch Changes
1165
+
1166
+ - 8dac895: feat: `LanguageModelV3`
1167
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
1168
+ - Updated dependencies [8dac895]
1169
+ - @ai-sdk/provider-utils@3.1.0-beta.5
1170
+ - @ai-sdk/provider@2.1.0-beta.3
1171
+
1172
+ ## 2.1.0-beta.5
1173
+
1174
+ ### Patch Changes
1175
+
1176
+ - 11e4abe: feat(provider/anthropic): web search tool updates
1177
+ - afb00e3: feat(provider/anthropic): add text_editor_20250728 tool support
1178
+
1179
+ Add text_editor_20250728 tool for Claude 4 models (Sonnet 4, Opus 4, Opus 4.1) with optional max_characters parameter and no undo_edit command support.
1180
+
1181
+ - f6603b7: fix(provider/anthropic): correct raw usage information
1182
+ - fa35e95: feat(provider/anthropic): add web fetch tool
1183
+ - c5440c5: chore(provider/anthropic): update anthropic model ids
1184
+
1185
+ ## 2.1.0-beta.4
1186
+
1187
+ ### Patch Changes
1188
+
1189
+ - 4616b86: chore: update zod peer depenedency version
1190
+ - Updated dependencies [4616b86]
1191
+ - @ai-sdk/provider-utils@3.1.0-beta.4
1192
+
1193
+ ## 2.1.0-beta.3
1194
+
1195
+ ### Patch Changes
1196
+
1197
+ - ed329cb: feat: `Provider-V3`
1198
+ - Updated dependencies
1199
+ - @ai-sdk/provider@2.1.0-beta.2
1200
+ - @ai-sdk/provider-utils@3.1.0-beta.3
1201
+
1202
+ ## 2.1.0-beta.2
1203
+
1204
+ ### Patch Changes
1205
+
1206
+ - 1cad0ab: feat: add provider version to user-agent header
1207
+ - Updated dependencies [0c4822d]
1208
+ - @ai-sdk/provider@2.1.0-beta.1
1209
+ - @ai-sdk/provider-utils@3.1.0-beta.2
1210
+
1211
+ ## 2.1.0-beta.1
1212
+
1213
+ ### Patch Changes
1214
+
1215
+ - Updated dependencies
1216
+ - @ai-sdk/test-server@1.0.0-beta.0
1217
+ - @ai-sdk/provider-utils@3.1.0-beta.1
1218
+
1219
+ ## 2.1.0-beta.0
1220
+
1221
+ ### Minor Changes
1222
+
1223
+ - 78928cb: release: start 5.1 beta
1224
+
1225
+ ### Patch Changes
1226
+
1227
+ - Updated dependencies [78928cb]
1228
+ - @ai-sdk/provider@2.1.0-beta.0
1229
+ - @ai-sdk/provider-utils@3.1.0-beta.0
1230
+
1231
+ ## 2.0.17
1232
+
1233
+ ### Patch Changes
1234
+
1235
+ - da92132: fix(provider/anthorpic): add cacheControl to AnthropicProviderOptions
1236
+
1237
+ ## 2.0.16
1238
+
1239
+ ### Patch Changes
1240
+
1241
+ - Updated dependencies [0294b58]
1242
+ - @ai-sdk/provider-utils@3.0.9
1243
+
1244
+ ## 2.0.15
1245
+
1246
+ ### Patch Changes
1247
+
1248
+ - c8aab0a: fix (provider/anthropic): revert cd458a8c1667df86e6987a1f2e06159823453864
1249
+
1250
+ ## 2.0.14
1251
+
1252
+ ### Patch Changes
1253
+
1254
+ - 2338c79: feat (provider/anthropic): update jsdoc of anthropic tools
1255
+
1256
+ ## 2.0.13
1257
+
1258
+ ### Patch Changes
1259
+
1260
+ - cd458a8: fix(anthropic): reorder tool_result parts to front of combined user messages
1261
+
1262
+ Reorders tool_result content to appear before user text within combined user messages, ensuring Claude API validation requirements are met while preserving the intentional message combining behavior that prevents role alternation errors. Fixes #8318.
1263
+
1264
+ ## 2.0.12
1265
+
1266
+ ### Patch Changes
1267
+
1268
+ - Updated dependencies [99964ed]
1269
+ - @ai-sdk/provider-utils@3.0.8
1270
+
1271
+ ## 2.0.11
1272
+
1273
+ ### Patch Changes
1274
+
1275
+ - c7fee29: feat(anthropic): handle `pause_turn` as value for `stop_reason`
1276
+
1277
+ ## 2.0.10
1278
+
1279
+ ### Patch Changes
1280
+
1281
+ - c152ef7: feat(providers/anthropic): map 'refusal' stop reason to 'content-filter' finishReason
1282
+
1283
+ ## 2.0.9
1284
+
1285
+ ### Patch Changes
1286
+
1287
+ - cdc6b7a: fix(provider/anthropic): disable parallel tool use when using json output tool for structured responses
1288
+
1289
+ ## 2.0.8
1290
+
1291
+ ### Patch Changes
1292
+
1293
+ - Updated dependencies [886e7cd]
1294
+ - @ai-sdk/provider-utils@3.0.7
1295
+
1296
+ ## 2.0.7
1297
+
1298
+ ### Patch Changes
1299
+
1300
+ - Updated dependencies [1b5a3d3]
1301
+ - @ai-sdk/provider-utils@3.0.6
1302
+
1303
+ ## 2.0.6
1304
+
1305
+ ### Patch Changes
1306
+
1307
+ - Updated dependencies [0857788]
1308
+ - @ai-sdk/provider-utils@3.0.5
1309
+
1310
+ ## 2.0.5
1311
+
1312
+ ### Patch Changes
1313
+
1314
+ - Updated dependencies [68751f9]
1315
+ - @ai-sdk/provider-utils@3.0.4
1316
+
1317
+ ## 2.0.4
1318
+
1319
+ ### Patch Changes
1320
+
1321
+ - ae859ce: Added support for Anthropic provider's server-side code execution tool
1322
+
1323
+ ## 2.0.3
1324
+
1325
+ ### Patch Changes
1326
+
1327
+ - Updated dependencies
1328
+ - @ai-sdk/provider-utils@3.0.3
1329
+
1330
+ ## 2.0.2
1331
+
1332
+ ### Patch Changes
1333
+
1334
+ - Updated dependencies [38ac190]
1335
+ - @ai-sdk/provider-utils@3.0.2
1336
+
1337
+ ## 2.0.1
1338
+
1339
+ ### Patch Changes
1340
+
1341
+ - Updated dependencies [90d212f]
1342
+ - @ai-sdk/provider-utils@3.0.1
1343
+
1344
+ ## 2.0.0
1345
+
1346
+ ### Major Changes
1347
+
1348
+ - d5f588f: AI SDK 5
1349
+
1350
+ ### Patch Changes
1351
+
1352
+ - ad66c0e: feat (provider/anthropic): json response schema support via tool calls
1353
+ - 8f2854f: feat (provider/anthropic): send web search tool calls
1354
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
1355
+ - 8dfcb11: feat(anthropic/citation): text support for citations
1356
+ - 9f73965: feat (provider/anthropic): parse websearch tool args
1357
+ - e2aceaf: feat: add raw chunk support
1358
+ - fdff8a4: fix(provider/anthropic): correct Claude 4 model ID format
1359
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1360
+ - 4f26d59: feat(provider/anthropic): add disable parallel tool use option
1361
+ - 25f3454: feat(provider/anthropic): add PDF citation support with document sources for streamText
1362
+ - a85c85f: fix (provider/anthropic): streaming json output
1363
+ - 5c9eec4: chore(providers/anthropic): switch to providerOptions
1364
+ - 2e13791: feat(anthropic): add server-side web search support
1365
+ - 66962ed: fix(packages): export node10 compatible types
1366
+ - 075711d: fix (provider/anthropic): return stop finish reason for json output with tool
1367
+ - 269683f: Add raw Anthropic usage information to provider metadata
1368
+ - d601ed9: fix (provider/anthropic): send tool call id in tool-input-start chunk
1369
+ - b9ddcdd: feat(anthropic): add text_editor_20250429 tool for Claude 4 models
1370
+ - 91715e5: fix (provider/google-vertex): fix anthropic support for image urls in messages
1371
+ - ca8aac6: feat (providers/anthropic): add claude v4 models
1372
+ - 61ab528: Add support for URL-based PDF documents in the Anthropic provider
1373
+ - 84577c8: fix (providers/anthropic): remove fine grained tool streaming beta
1374
+ - d1a034f: feature: using Zod 4 for internal stuff
1375
+ - 6392f60: fix(anthropic): resolve web search API validation errors with partial location + provider output
1376
+ - 205077b: fix: improve Zod compatibility
1377
+ - ee5a9c0: feat: streamText onChunk raw chunk support
1378
+ - f418dd7: Added anthropic provider defined tool support to amazon bedrock
1379
+ - 362b048: add web search tool support
1380
+ - 399e056: fix: anthropic computer tool
1381
+ - 0b678b2: feat (provider/anthropic): enable streaming tool calls
1382
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
1383
+ - a753b3a: feat (provider/anthropic): cache control for tools
1384
+ - Updated dependencies
1385
+ - @ai-sdk/provider-utils@3.0.0
1386
+ - @ai-sdk/provider@2.0.0
1387
+
1388
+ ## 2.0.0-beta.13
1389
+
1390
+ ### Patch Changes
1391
+
1392
+ - Updated dependencies [88a8ee5]
1393
+ - @ai-sdk/provider-utils@3.0.0-beta.10
1394
+
1395
+ ## 2.0.0-beta.12
1396
+
1397
+ ### Patch Changes
1398
+
1399
+ - f418dd7: Added anthropic provider defined tool support to amazon bedrock
1400
+ - Updated dependencies [27deb4d]
1401
+ - @ai-sdk/provider@2.0.0-beta.2
1402
+ - @ai-sdk/provider-utils@3.0.0-beta.9
1403
+
1404
+ ## 2.0.0-beta.11
1405
+
1406
+ ### Patch Changes
1407
+
1408
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1409
+ - Updated dependencies [dd5fd43]
1410
+ - @ai-sdk/provider-utils@3.0.0-beta.8
1411
+
1412
+ ## 2.0.0-beta.10
1413
+
1414
+ ### Patch Changes
1415
+
1416
+ - 269683f: Add raw Anthropic usage information to provider metadata
1417
+ - Updated dependencies [e7fcc86]
1418
+ - @ai-sdk/provider-utils@3.0.0-beta.7
1419
+
1420
+ ## 2.0.0-beta.9
1421
+
1422
+ ### Patch Changes
1423
+
1424
+ - 4f26d59: feat(provider/anthropic): add disable parallel tool use option
1425
+ - a753b3a: feat (provider/anthropic): cache control for tools
1426
+ - Updated dependencies [ac34802]
1427
+ - @ai-sdk/provider-utils@3.0.0-beta.6
1428
+
1429
+ ## 2.0.0-beta.8
1430
+
1431
+ ### Patch Changes
1432
+
1433
+ - Updated dependencies
1434
+ - @ai-sdk/provider-utils@3.0.0-beta.5
1435
+
1436
+ ## 2.0.0-beta.7
1437
+
1438
+ ### Patch Changes
1439
+
1440
+ - 205077b: fix: improve Zod compatibility
1441
+ - Updated dependencies [205077b]
1442
+ - @ai-sdk/provider-utils@3.0.0-beta.4
1443
+
1444
+ ## 2.0.0-beta.6
1445
+
1446
+ ### Patch Changes
1447
+
1448
+ - Updated dependencies [05d2819]
1449
+ - @ai-sdk/provider-utils@3.0.0-beta.3
1450
+
1451
+ ## 2.0.0-beta.5
1452
+
1453
+ ### Patch Changes
1454
+
1455
+ - b9ddcdd: feat(anthropic): add text_editor_20250429 tool for Claude 4 models
1456
+
1457
+ ## 2.0.0-beta.4
1458
+
1459
+ ### Patch Changes
1460
+
1461
+ - fdff8a4: fix(provider/anthropic): correct Claude 4 model ID format
1462
+ - 84577c8: fix (providers/anthropic): remove fine grained tool streaming beta
1463
+
1464
+ ## 2.0.0-beta.3
1465
+
1466
+ ### Patch Changes
1467
+
1468
+ - a85c85f: fix (provider/anthropic): streaming json output
1469
+ - d1a034f: feature: using Zod 4 for internal stuff
1470
+ - 0b678b2: feat (provider/anthropic): enable streaming tool calls
1471
+ - Updated dependencies
1472
+ - @ai-sdk/provider-utils@3.0.0-beta.2
1473
+
1474
+ ## 2.0.0-beta.2
1475
+
1476
+ ### Patch Changes
1477
+
1478
+ - d601ed9: fix (provider/anthropic): send tool call id in tool-input-start chunk
1479
+
1480
+ ## 2.0.0-beta.1
1481
+
1482
+ ### Patch Changes
1483
+
1484
+ - 8f2854f: feat (provider/anthropic): send web search tool calls
1485
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
1486
+ - 9f73965: feat (provider/anthropic): parse websearch tool args
1487
+ - 399e056: fix: anthropic computer tool
1488
+ - Updated dependencies
1489
+ - @ai-sdk/provider@2.0.0-beta.1
1490
+ - @ai-sdk/provider-utils@3.0.0-beta.1
1491
+
1492
+ ## 2.0.0-alpha.15
1493
+
1494
+ ### Patch Changes
1495
+
1496
+ - Updated dependencies
1497
+ - @ai-sdk/provider@2.0.0-alpha.15
1498
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
1499
+
1500
+ ## 2.0.0-alpha.14
1501
+
1502
+ ### Patch Changes
1503
+
1504
+ - 2e13791: feat(anthropic): add server-side web search support
1505
+ - 6392f60: fix(anthropic): resolve web search API validation errors with partial location + provider output
1506
+ - Updated dependencies
1507
+ - @ai-sdk/provider@2.0.0-alpha.14
1508
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
1509
+
1510
+ ## 2.0.0-alpha.13
1511
+
1512
+ ### Patch Changes
1513
+
1514
+ - 8dfcb11: feat(anthropic/citation): text support for citations
1515
+ - ee5a9c0: feat: streamText onChunk raw chunk support
1516
+ - Updated dependencies [68ecf2f]
1517
+ - @ai-sdk/provider@2.0.0-alpha.13
1518
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
1519
+
1520
+ ## 2.0.0-alpha.12
1521
+
1522
+ ### Patch Changes
1523
+
1524
+ - e2aceaf: feat: add raw chunk support
1525
+ - Updated dependencies [e2aceaf]
1526
+ - @ai-sdk/provider@2.0.0-alpha.12
1527
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
1528
+
1529
+ ## 2.0.0-alpha.11
1530
+
1531
+ ### Patch Changes
1532
+
1533
+ - 25f3454: feat(provider/anthropic): add PDF citation support with document sources for streamText
1534
+ - Updated dependencies [c1e6647]
1535
+ - @ai-sdk/provider@2.0.0-alpha.11
1536
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
1537
+
1538
+ ## 2.0.0-alpha.10
1539
+
1540
+ ### Patch Changes
1541
+
1542
+ - Updated dependencies [c4df419]
1543
+ - @ai-sdk/provider@2.0.0-alpha.10
1544
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
1545
+
1546
+ ## 2.0.0-alpha.9
1547
+
1548
+ ### Patch Changes
1549
+
1550
+ - 362b048: add web search tool support
1551
+ - Updated dependencies [811dff3]
1552
+ - @ai-sdk/provider@2.0.0-alpha.9
1553
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
1554
+
1555
+ ## 2.0.0-alpha.8
1556
+
1557
+ ### Patch Changes
1558
+
1559
+ - ad66c0e: feat (provider/anthropic): json response schema support via tool calls
1560
+ - 075711d: fix (provider/anthropic): return stop finish reason for json output with tool
1561
+ - Updated dependencies
1562
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
1563
+ - @ai-sdk/provider@2.0.0-alpha.8
1564
+
1565
+ ## 2.0.0-alpha.7
1566
+
1567
+ ### Patch Changes
1568
+
1569
+ - Updated dependencies [5c56081]
1570
+ - @ai-sdk/provider@2.0.0-alpha.7
1571
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
1572
+
1573
+ ## 2.0.0-alpha.6
1574
+
1575
+ ### Patch Changes
1576
+
1577
+ - Updated dependencies [0d2c085]
1578
+ - @ai-sdk/provider@2.0.0-alpha.6
1579
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
1580
+
1581
+ ## 2.0.0-alpha.4
1582
+
1583
+ ### Patch Changes
1584
+
1585
+ - ca8aac6: feat (providers/anthropic): add claude v4 models
1586
+ - Updated dependencies [dc714f3]
1587
+ - @ai-sdk/provider@2.0.0-alpha.4
1588
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
1589
+
1590
+ ## 2.0.0-alpha.3
1591
+
1592
+ ### Patch Changes
1593
+
1594
+ - Updated dependencies [6b98118]
1595
+ - @ai-sdk/provider@2.0.0-alpha.3
1596
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
1597
+
1598
+ ## 2.0.0-alpha.2
1599
+
1600
+ ### Patch Changes
1601
+
1602
+ - Updated dependencies [26535e0]
1603
+ - @ai-sdk/provider@2.0.0-alpha.2
1604
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
1605
+
1606
+ ## 2.0.0-alpha.1
1607
+
1608
+ ### Patch Changes
1609
+
1610
+ - Updated dependencies [3f2f00c]
1611
+ - @ai-sdk/provider@2.0.0-alpha.1
1612
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
1613
+
1614
+ ## 2.0.0-canary.19
1615
+
1616
+ ### Patch Changes
1617
+
1618
+ - Updated dependencies [faf8446]
1619
+ - @ai-sdk/provider-utils@3.0.0-canary.19
1620
+
1621
+ ## 2.0.0-canary.18
1622
+
1623
+ ### Patch Changes
1624
+
1625
+ - Updated dependencies [40acf9b]
1626
+ - @ai-sdk/provider-utils@3.0.0-canary.18
1627
+
1628
+ ## 2.0.0-canary.17
1629
+
1630
+ ### Patch Changes
1631
+
1632
+ - Updated dependencies [ea7a7c9]
1633
+ - @ai-sdk/provider-utils@3.0.0-canary.17
1634
+
1635
+ ## 2.0.0-canary.16
1636
+
1637
+ ### Patch Changes
1638
+
1639
+ - Updated dependencies [87b828f]
1640
+ - @ai-sdk/provider-utils@3.0.0-canary.16
1641
+
1642
+ ## 2.0.0-canary.15
1643
+
1644
+ ### Patch Changes
1645
+
1646
+ - Updated dependencies
1647
+ - @ai-sdk/provider-utils@3.0.0-canary.15
1648
+ - @ai-sdk/provider@2.0.0-canary.14
1649
+
1650
+ ## 2.0.0-canary.14
1651
+
1652
+ ### Patch Changes
1653
+
1654
+ - Updated dependencies
1655
+ - @ai-sdk/provider-utils@3.0.0-canary.14
1656
+ - @ai-sdk/provider@2.0.0-canary.13
1657
+
1658
+ ## 2.0.0-canary.13
1659
+
1660
+ ### Patch Changes
1661
+
1662
+ - Updated dependencies
1663
+ - @ai-sdk/provider@2.0.0-canary.12
1664
+ - @ai-sdk/provider-utils@3.0.0-canary.13
1665
+
1666
+ ## 2.0.0-canary.12
1667
+
1668
+ ### Patch Changes
1669
+
1670
+ - 5c9eec4: chore(providers/anthropic): switch to providerOptions
1671
+ - Updated dependencies
1672
+ - @ai-sdk/provider@2.0.0-canary.11
1673
+ - @ai-sdk/provider-utils@3.0.0-canary.12
1674
+
1675
+ ## 2.0.0-canary.11
1676
+
1677
+ ### Patch Changes
1678
+
1679
+ - 66962ed: fix(packages): export node10 compatible types
1680
+ - Updated dependencies
1681
+ - @ai-sdk/provider-utils@3.0.0-canary.11
1682
+ - @ai-sdk/provider@2.0.0-canary.10
1683
+
1684
+ ## 2.0.0-canary.10
1685
+
1686
+ ### Patch Changes
1687
+
1688
+ - Updated dependencies [e86be6f]
1689
+ - @ai-sdk/provider@2.0.0-canary.9
1690
+ - @ai-sdk/provider-utils@3.0.0-canary.10
1691
+
1692
+ ## 2.0.0-canary.9
1693
+
1694
+ ### Patch Changes
1695
+
1696
+ - Updated dependencies
1697
+ - @ai-sdk/provider@2.0.0-canary.8
1698
+ - @ai-sdk/provider-utils@3.0.0-canary.9
1699
+
1700
+ ## 2.0.0-canary.8
1701
+
1702
+ ### Patch Changes
1703
+
1704
+ - Updated dependencies
1705
+ - @ai-sdk/provider-utils@3.0.0-canary.8
1706
+ - @ai-sdk/provider@2.0.0-canary.7
1707
+
1708
+ ## 2.0.0-canary.7
1709
+
1710
+ ### Patch Changes
1711
+
1712
+ - Updated dependencies
1713
+ - @ai-sdk/provider@2.0.0-canary.6
1714
+ - @ai-sdk/provider-utils@3.0.0-canary.7
1715
+
1716
+ ## 2.0.0-canary.6
1717
+
1718
+ ### Patch Changes
1719
+
1720
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
1721
+ - Updated dependencies
1722
+ - @ai-sdk/provider@2.0.0-canary.5
1723
+ - @ai-sdk/provider-utils@3.0.0-canary.6
1724
+
1725
+ ## 2.0.0-canary.5
1726
+
1727
+ ### Patch Changes
1728
+
1729
+ - Updated dependencies [6f6bb89]
1730
+ - @ai-sdk/provider@2.0.0-canary.4
1731
+ - @ai-sdk/provider-utils@3.0.0-canary.5
1732
+
1733
+ ## 2.0.0-canary.4
1734
+
1735
+ ### Patch Changes
1736
+
1737
+ - Updated dependencies [d1a1aa1]
1738
+ - @ai-sdk/provider@2.0.0-canary.3
1739
+ - @ai-sdk/provider-utils@3.0.0-canary.4
1740
+
1741
+ ## 2.0.0-canary.3
1742
+
1743
+ ### Patch Changes
1744
+
1745
+ - 61ab528: Add support for URL-based PDF documents in the Anthropic provider
1746
+ - Updated dependencies
1747
+ - @ai-sdk/provider-utils@3.0.0-canary.3
1748
+ - @ai-sdk/provider@2.0.0-canary.2
1749
+
1750
+ ## 2.0.0-canary.2
1751
+
1752
+ ### Patch Changes
1753
+
1754
+ - Updated dependencies
1755
+ - @ai-sdk/provider@2.0.0-canary.1
1756
+ - @ai-sdk/provider-utils@3.0.0-canary.2
1757
+
1758
+ ## 2.0.0-canary.1
1759
+
1760
+ ### Patch Changes
1761
+
1762
+ - Updated dependencies
1763
+ - @ai-sdk/provider-utils@3.0.0-canary.1
1764
+
1765
+ ## 2.0.0-canary.0
1766
+
1767
+ ### Major Changes
1768
+
1769
+ - d5f588f: AI SDK 5
1770
+
1771
+ ### Patch Changes
1772
+
1773
+ - 91715e5: fix (provider/google-vertex): fix anthropic support for image urls in messages
1774
+ - Updated dependencies [d5f588f]
1775
+ - @ai-sdk/provider-utils@3.0.0-canary.0
1776
+ - @ai-sdk/provider@2.0.0-canary.0
1777
+
1778
+ ## 1.2.4
1779
+
1780
+ ### Patch Changes
1781
+
1782
+ - Updated dependencies [28be004]
1783
+ - @ai-sdk/provider-utils@2.2.3
1784
+
1785
+ ## 1.2.3
1786
+
1787
+ ### Patch Changes
1788
+
1789
+ - Updated dependencies [b01120e]
1790
+ - @ai-sdk/provider-utils@2.2.2
1791
+
1792
+ ## 1.2.2
1793
+
1794
+ ### Patch Changes
1795
+
1796
+ - aeaa92b: feat (provider/anthropic): expose type for validating Anthropic responses provider options
1797
+
1798
+ ## 1.2.1
1799
+
1800
+ ### Patch Changes
1801
+
1802
+ - Updated dependencies [f10f0fa]
1803
+ - @ai-sdk/provider-utils@2.2.1
1804
+
1805
+ ## 1.2.0
1806
+
1807
+ ### Minor Changes
1808
+
1809
+ - 5bc638d: AI SDK 4.2
1810
+
1811
+ ### Patch Changes
1812
+
1813
+ - Updated dependencies [5bc638d]
1814
+ - @ai-sdk/provider@1.1.0
1815
+ - @ai-sdk/provider-utils@2.2.0
1816
+
1817
+ ## 1.1.19
1818
+
1819
+ ### Patch Changes
1820
+
1821
+ - Updated dependencies [d0c4659]
1822
+ - @ai-sdk/provider-utils@2.1.15
1823
+
1824
+ ## 1.1.18
1825
+
1826
+ ### Patch Changes
1827
+
1828
+ - Updated dependencies [0bd5bc6]
1829
+ - @ai-sdk/provider@1.0.12
1830
+ - @ai-sdk/provider-utils@2.1.14
1831
+
1832
+ ## 1.1.17
1833
+
1834
+ ### Patch Changes
1835
+
1836
+ - Updated dependencies [2e1101a]
1837
+ - @ai-sdk/provider@1.0.11
1838
+ - @ai-sdk/provider-utils@2.1.13
1839
+
1840
+ ## 1.1.16
1841
+
1842
+ ### Patch Changes
1843
+
1844
+ - Updated dependencies [1531959]
1845
+ - @ai-sdk/provider-utils@2.1.12
1846
+
1847
+ ## 1.1.15
1848
+
1849
+ ### Patch Changes
1850
+
1851
+ - e1d3d42: feat (ai): expose raw response body in generateText and generateObject
1852
+ - Updated dependencies [e1d3d42]
1853
+ - @ai-sdk/provider@1.0.10
1854
+ - @ai-sdk/provider-utils@2.1.11
1855
+
1856
+ ## 1.1.14
1857
+
1858
+ ### Patch Changes
1859
+
1860
+ - 0e8b66c: feat (provider/anthropic): support image urls
1861
+
1862
+ ## 1.1.13
1863
+
1864
+ ### Patch Changes
1865
+
1866
+ - 3004b14: feat(provider/anthropic): add bash_20250124 and text_editor_20250124 tools
1867
+
1868
+ ## 1.1.12
1869
+
1870
+ ### Patch Changes
1871
+
1872
+ - b3e5a15: fix (provider/anthropic): add model setting to allow omitting reasoning content from model requests
1873
+
1874
+ ## 1.1.11
1875
+
1876
+ ### Patch Changes
1877
+
1878
+ - 00276ae: feat (provider/anthropic): update types for Anthropic computer_20250124 tool
1879
+ - a4f8714: feat (provider/anthropic): update beta flag for sonnet-3-7 when using new computer-use tool
1880
+
1881
+ ## 1.1.10
1882
+
1883
+ ### Patch Changes
1884
+
1885
+ - ddf9740: feat (ai): add anthropic reasoning
1886
+ - Updated dependencies [ddf9740]
1887
+ - @ai-sdk/provider@1.0.9
1888
+ - @ai-sdk/provider-utils@2.1.10
1889
+
1890
+ ## 1.1.9
1891
+
1892
+ ### Patch Changes
1893
+
1894
+ - Updated dependencies [2761f06]
1895
+ - @ai-sdk/provider@1.0.8
1896
+ - @ai-sdk/provider-utils@2.1.9
1897
+
1898
+ ## 1.1.8
1899
+
1900
+ ### Patch Changes
1901
+
1902
+ - Updated dependencies [2e898b4]
1903
+ - @ai-sdk/provider-utils@2.1.8
1904
+
1905
+ ## 1.1.7
1906
+
1907
+ ### Patch Changes
1908
+
1909
+ - Updated dependencies [3ff4ef8]
1910
+ - @ai-sdk/provider-utils@2.1.7
1911
+
1912
+ ## 1.1.6
1913
+
1914
+ ### Patch Changes
1915
+
1916
+ - Updated dependencies [d89c3b9]
1917
+ - @ai-sdk/provider@1.0.7
1918
+ - @ai-sdk/provider-utils@2.1.6
1919
+
1920
+ ## 1.1.5
1921
+
1922
+ ### Patch Changes
1923
+
1924
+ - Updated dependencies [3a602ca]
1925
+ - @ai-sdk/provider-utils@2.1.5
1926
+
1927
+ ## 1.1.4
1928
+
1929
+ ### Patch Changes
1930
+
1931
+ - Updated dependencies [066206e]
1932
+ - @ai-sdk/provider-utils@2.1.4
1933
+
1934
+ ## 1.1.3
1935
+
1936
+ ### Patch Changes
1937
+
1938
+ - Updated dependencies [39e5c1f]
1939
+ - @ai-sdk/provider-utils@2.1.3
1940
+
1941
+ ## 1.1.2
1942
+
1943
+ ### Patch Changes
1944
+
1945
+ - Updated dependencies
1946
+ - @ai-sdk/provider-utils@2.1.2
1947
+ - @ai-sdk/provider@1.0.6
1948
+
1949
+ ## 1.1.1
1950
+
1951
+ ### Patch Changes
1952
+
1953
+ - 858f934: feat (provider/anthropic): default cache-control on and mark model setting deprecated
1954
+ - b284e2c: feat (provider/google-vertex): support prompt caching for Anthropic Claude models
1955
+ - Updated dependencies
1956
+ - @ai-sdk/provider-utils@2.1.1
1957
+ - @ai-sdk/provider@1.0.5
1958
+
1959
+ ## 1.1.0
1960
+
1961
+ ### Minor Changes
1962
+
1963
+ - 62ba5ad: release: AI SDK 4.1
1964
+
1965
+ ### Patch Changes
1966
+
1967
+ - Updated dependencies [62ba5ad]
1968
+ - @ai-sdk/provider-utils@2.1.0
1969
+
1970
+ ## 1.0.9
1971
+
1972
+ ### Patch Changes
1973
+
1974
+ - Updated dependencies [00114c5]
1975
+ - @ai-sdk/provider-utils@2.0.8
1976
+
1977
+ ## 1.0.8
1978
+
1979
+ ### Patch Changes
1980
+
1981
+ - Updated dependencies
1982
+ - @ai-sdk/provider-utils@2.0.7
1983
+
1984
+ ## 1.0.7
1985
+
1986
+ ### Patch Changes
1987
+
1988
+ - Updated dependencies
1989
+ - @ai-sdk/provider@1.0.4
1990
+ - @ai-sdk/provider-utils@2.0.6
1991
+
1992
+ ## 1.0.6
1993
+
1994
+ ### Patch Changes
1995
+
1996
+ - 5ed5e45: chore (config): Use ts-library.json tsconfig for no-UI libs.
1997
+ - Updated dependencies [5ed5e45]
1998
+ - @ai-sdk/provider-utils@2.0.5
1999
+ - @ai-sdk/provider@1.0.3
2000
+
2001
+ ## 1.0.5
2002
+
2003
+ ### Patch Changes
2004
+
2005
+ - Updated dependencies [09a9cab]
2006
+ - @ai-sdk/provider@1.0.2
2007
+ - @ai-sdk/provider-utils@2.0.4
2008
+
2009
+ ## 1.0.4
2010
+
2011
+ ### Patch Changes
2012
+
2013
+ - bcd892e: feat (provider/google-vertex): Add support for Anthropic models.
2014
+
2015
+ ## 1.0.3
2016
+
2017
+ ### Patch Changes
2018
+
2019
+ - Updated dependencies [0984f0b]
2020
+ - @ai-sdk/provider-utils@2.0.3
2021
+
2022
+ ## 1.0.2
2023
+
2024
+ ### Patch Changes
2025
+
2026
+ - Updated dependencies [b446ae5]
2027
+ - @ai-sdk/provider@1.0.1
2028
+ - @ai-sdk/provider-utils@2.0.2
2029
+
2030
+ ## 1.0.1
2031
+
2032
+ ### Patch Changes
2033
+
2034
+ - Updated dependencies [c3ab5de]
2035
+ - @ai-sdk/provider-utils@2.0.1
2036
+
2037
+ ## 1.0.0
2038
+
2039
+ ### Major Changes
2040
+
2041
+ - 66060f7: chore (release): bump major version to 4.0
2042
+ - 0d3d3f5: chore (providers): remove baseUrl option
2043
+ - 8ad0504: chore (provider/anthropic): remove Anthropic facade
2044
+ - 2f6e8c0: chore (provider/anthropic): remove topK model setting
2045
+
2046
+ ### Patch Changes
2047
+
2048
+ - Updated dependencies
2049
+ - @ai-sdk/provider-utils@2.0.0
2050
+ - @ai-sdk/provider@1.0.0
2051
+
2052
+ ## 1.0.0-canary.4
2053
+
2054
+ ### Major Changes
2055
+
2056
+ - 2f6e8c0: chore (provider/anthropic): remove topK model setting
2057
+
2058
+ ## 1.0.0-canary.3
2059
+
2060
+ ### Patch Changes
2061
+
2062
+ - Updated dependencies [8426f55]
2063
+ - @ai-sdk/provider-utils@2.0.0-canary.3
2064
+
2065
+ ## 1.0.0-canary.2
2066
+
2067
+ ### Patch Changes
2068
+
2069
+ - Updated dependencies
2070
+ - @ai-sdk/provider-utils@2.0.0-canary.2
2071
+
2072
+ ## 1.0.0-canary.1
2073
+
2074
+ ### Major Changes
2075
+
2076
+ - 0d3d3f5: chore (providers): remove baseUrl option
2077
+ - 8ad0504: chore (provider/anthropic): remove Anthropic facade
2078
+
2079
+ ### Patch Changes
2080
+
2081
+ - Updated dependencies [b1da952]
2082
+ - @ai-sdk/provider-utils@2.0.0-canary.1
2083
+
2084
+ ## 1.0.0-canary.0
2085
+
2086
+ ### Major Changes
2087
+
2088
+ - 66060f7: chore (release): bump major version to 4.0
2089
+
2090
+ ### Patch Changes
2091
+
2092
+ - Updated dependencies
2093
+ - @ai-sdk/provider-utils@2.0.0-canary.0
2094
+ - @ai-sdk/provider@1.0.0-canary.0
2095
+
2096
+ ## 0.0.56
2097
+
2098
+ ### Patch Changes
2099
+
2100
+ - e6042b1: feat (provider/anthropic): add haiku 3.5 model ids
2101
+
2102
+ ## 0.0.55
2103
+
2104
+ ### Patch Changes
2105
+
2106
+ - ac380e3: fix (provider/anthropic): continuation mode with 3+ steps
2107
+
2108
+ ## 0.0.54
2109
+
2110
+ ### Patch Changes
2111
+
2112
+ - 4d2e53b: feat (provider/anthropic): pdf support
2113
+ - c8afcb5: feat (provider/anthropic): allow using computer use and cache control at the same time
2114
+
2115
+ ## 0.0.53
2116
+
2117
+ ### Patch Changes
2118
+
2119
+ - 3b1b69a: feat (provider/anthropic): add computer use tools
2120
+ - 3b1b69a: feat: provider-defined tools
2121
+ - 8c222cd: feat (provider/anthropic): update model ids
2122
+ - 811a317: feat (ai/core): multi-part tool results (incl. images)
2123
+ - Updated dependencies
2124
+ - @ai-sdk/provider-utils@1.0.22
2125
+ - @ai-sdk/provider@0.0.26
2126
+
2127
+ ## 0.0.52
2128
+
2129
+ ### Patch Changes
2130
+
2131
+ - b9b0d7b: feat (ai): access raw request body
2132
+ - Updated dependencies [b9b0d7b]
2133
+ - @ai-sdk/provider@0.0.25
2134
+ - @ai-sdk/provider-utils@1.0.21
2135
+
2136
+ ## 0.0.51
2137
+
2138
+ ### Patch Changes
2139
+
2140
+ - Updated dependencies [d595d0d]
2141
+ - @ai-sdk/provider@0.0.24
2142
+ - @ai-sdk/provider-utils@1.0.20
2143
+
2144
+ ## 0.0.50
2145
+
2146
+ ### Patch Changes
2147
+
2148
+ - Updated dependencies [273f696]
2149
+ - @ai-sdk/provider-utils@1.0.19
2150
+
2151
+ ## 0.0.49
2152
+
2153
+ ### Patch Changes
2154
+
2155
+ - 03313cd: feat (ai): expose response id, response model, response timestamp in telemetry and api
2156
+ - 3be7c1c: fix (provider/anthropic): support prompt caching on assistant messages
2157
+ - Updated dependencies
2158
+ - @ai-sdk/provider-utils@1.0.18
2159
+ - @ai-sdk/provider@0.0.23
2160
+
2161
+ ## 0.0.48
2162
+
2163
+ ### Patch Changes
2164
+
2165
+ - 26515cb: feat (ai/provider): introduce ProviderV1 specification
2166
+ - Updated dependencies [26515cb]
2167
+ - @ai-sdk/provider@0.0.22
2168
+ - @ai-sdk/provider-utils@1.0.17
2169
+
2170
+ ## 0.0.47
2171
+
2172
+ ### Patch Changes
2173
+
2174
+ - Updated dependencies [09f895f]
2175
+ - @ai-sdk/provider-utils@1.0.16
2176
+
2177
+ ## 0.0.46
2178
+
2179
+ ### Patch Changes
2180
+
2181
+ - Updated dependencies [d67fa9c]
2182
+ - @ai-sdk/provider-utils@1.0.15
2183
+
2184
+ ## 0.0.45
2185
+
2186
+ ### Patch Changes
2187
+
2188
+ - 95a53a3: chore (provider/anthropic): remove tool calls beta header
2189
+
2190
+ ## 0.0.44
2191
+
2192
+ ### Patch Changes
2193
+
2194
+ - Updated dependencies [f2c025e]
2195
+ - @ai-sdk/provider@0.0.21
2196
+ - @ai-sdk/provider-utils@1.0.14
2197
+
2198
+ ## 0.0.43
2199
+
2200
+ ### Patch Changes
2201
+
2202
+ - 6ac355e: feat (provider/anthropic): add cache control support
2203
+ - Updated dependencies [6ac355e]
2204
+ - @ai-sdk/provider@0.0.20
2205
+ - @ai-sdk/provider-utils@1.0.13
2206
+
2207
+ ## 0.0.42
2208
+
2209
+ ### Patch Changes
2210
+
2211
+ - dd712ac: fix: use FetchFunction type to prevent self-reference
2212
+ - Updated dependencies [dd712ac]
2213
+ - @ai-sdk/provider-utils@1.0.12
2214
+
2215
+ ## 0.0.41
2216
+
2217
+ ### Patch Changes
2218
+
2219
+ - 89b18ca: fix (ai/provider): send finish reason 'unknown' by default
2220
+ - Updated dependencies [dd4a0f5]
2221
+ - @ai-sdk/provider@0.0.19
2222
+ - @ai-sdk/provider-utils@1.0.11
2223
+
2224
+ ## 0.0.40
2225
+
2226
+ ### Patch Changes
2227
+
2228
+ - Updated dependencies
2229
+ - @ai-sdk/provider-utils@1.0.10
2230
+ - @ai-sdk/provider@0.0.18
2231
+
2232
+ ## 0.0.39
2233
+
2234
+ ### Patch Changes
2235
+
2236
+ - Updated dependencies [029af4c]
2237
+ - @ai-sdk/provider@0.0.17
2238
+ - @ai-sdk/provider-utils@1.0.9
2239
+
2240
+ ## 0.0.38
2241
+
2242
+ ### Patch Changes
2243
+
2244
+ - Updated dependencies [d58517b]
2245
+ - @ai-sdk/provider@0.0.16
2246
+ - @ai-sdk/provider-utils@1.0.8
2247
+
2248
+ ## 0.0.37
2249
+
2250
+ ### Patch Changes
2251
+
2252
+ - Updated dependencies [96aed25]
2253
+ - @ai-sdk/provider@0.0.15
2254
+ - @ai-sdk/provider-utils@1.0.7
2255
+
2256
+ ## 0.0.36
2257
+
2258
+ ### Patch Changes
2259
+
2260
+ - Updated dependencies
2261
+ - @ai-sdk/provider-utils@1.0.6
2262
+
2263
+ ## 0.0.35
2264
+
2265
+ ### Patch Changes
2266
+
2267
+ - fe2128f0: feat (provider/anthropic): combine sequential assistant messages into one
2268
+
2269
+ ## 0.0.34
2270
+
2271
+ ### Patch Changes
2272
+
2273
+ - 7d0fd5a8: fix (provider/anthropic): handle error stream chunks
2274
+
2275
+ ## 0.0.33
2276
+
2277
+ ### Patch Changes
2278
+
2279
+ - a8d1c9e9: feat (ai/core): parallel image download
2280
+ - Updated dependencies [a8d1c9e9]
2281
+ - @ai-sdk/provider-utils@1.0.5
2282
+ - @ai-sdk/provider@0.0.14
2283
+
2284
+ ## 0.0.32
2285
+
2286
+ ### Patch Changes
2287
+
2288
+ - Updated dependencies [4f88248f]
2289
+ - @ai-sdk/provider-utils@1.0.4
2290
+
2291
+ ## 0.0.31
2292
+
2293
+ ### Patch Changes
2294
+
2295
+ - 2b9da0f0: feat (core): support stopSequences setting.
2296
+ - a5b58845: feat (core): support topK setting
2297
+ - 4aa8deb3: feat (provider): support responseFormat setting in provider api
2298
+ - 13b27ec6: chore (ai/core): remove grammar mode
2299
+ - Updated dependencies
2300
+ - @ai-sdk/provider@0.0.13
2301
+ - @ai-sdk/provider-utils@1.0.3
2302
+
2303
+ ## 0.0.30
2304
+
2305
+ ### Patch Changes
2306
+
2307
+ - 4c6b80f7: chore (provider/anthropic): improve object-tool mode
2308
+
2309
+ ## 0.0.29
2310
+
2311
+ ### Patch Changes
2312
+
2313
+ - Updated dependencies [b7290943]
2314
+ - @ai-sdk/provider@0.0.12
2315
+ - @ai-sdk/provider-utils@1.0.2
2316
+
2317
+ ## 0.0.28
2318
+
2319
+ ### Patch Changes
2320
+
2321
+ - Updated dependencies [d481729f]
2322
+ - @ai-sdk/provider-utils@1.0.1
2323
+
2324
+ ## 0.0.27
2325
+
2326
+ ### Patch Changes
2327
+
2328
+ - 7e86b45e: fix (provider/anthropic): automatically trim trailing whitespace on pre-filled assistant responses
2329
+
2330
+ ## 0.0.26
2331
+
2332
+ ### Patch Changes
2333
+
2334
+ - 5edc6110: feat (ai/core): add custom request header support
2335
+ - Updated dependencies
2336
+ - @ai-sdk/provider@0.0.11
2337
+ - @ai-sdk/provider-utils@1.0.0
2338
+
2339
+ ## 0.0.25
2340
+
2341
+ ### Patch Changes
2342
+
2343
+ - 91dc4296: chore (@ai-sdk/anthropic): remove anthropic-beta header
2344
+
2345
+ ## 0.0.24
2346
+
2347
+ ### Patch Changes
2348
+
2349
+ - 04800838: fix (@ai-sdk/anthropic): combine tool and user messages, combine system messages
2350
+
2351
+ ## 0.0.23
2352
+
2353
+ ### Patch Changes
2354
+
2355
+ - Updated dependencies [02f6a088]
2356
+ - @ai-sdk/provider-utils@0.0.16
2357
+
2358
+ ## 0.0.22
2359
+
2360
+ ### Patch Changes
2361
+
2362
+ - 0a22b05b: feat (@ai-sdk/anthropic): add claude-3.5-sonnet model
2363
+
2364
+ ## 0.0.21
2365
+
2366
+ ### Patch Changes
2367
+
2368
+ - Updated dependencies
2369
+ - @ai-sdk/provider-utils@0.0.15
2370
+
2371
+ ## 0.0.20
2372
+
2373
+ ### Patch Changes
2374
+
2375
+ - 4728c37f: feat (core): add text embedding model support to provider registry
2376
+ - 7910ae84: feat (providers): support custom fetch implementations
2377
+ - Updated dependencies [7910ae84]
2378
+ - @ai-sdk/provider-utils@0.0.14
2379
+
2380
+ ## 0.0.19
2381
+
2382
+ ### Patch Changes
2383
+
2384
+ - Updated dependencies [102ca22f]
2385
+ - @ai-sdk/provider@0.0.10
2386
+ - @ai-sdk/provider-utils@0.0.13
2387
+
2388
+ ## 0.0.18
2389
+
2390
+ ### Patch Changes
2391
+
2392
+ - 09295e2e: feat (@ai-sdk/anthropic): automatically download image URLs
2393
+ - Updated dependencies
2394
+ - @ai-sdk/provider@0.0.9
2395
+ - @ai-sdk/provider-utils@0.0.12
2396
+
2397
+ ## 0.0.17
2398
+
2399
+ ### Patch Changes
2400
+
2401
+ - f39c0dd2: feat (provider): implement toolChoice support
2402
+ - Updated dependencies [f39c0dd2]
2403
+ - @ai-sdk/provider@0.0.8
2404
+ - @ai-sdk/provider-utils@0.0.11
2405
+
2406
+ ## 0.0.16
2407
+
2408
+ ### Patch Changes
2409
+
2410
+ - 24683b72: fix (providers): Zod is required dependency
2411
+ - Updated dependencies [8e780288]
2412
+ - @ai-sdk/provider@0.0.7
2413
+ - @ai-sdk/provider-utils@0.0.10
2414
+
2415
+ ## 0.0.15
2416
+
2417
+ ### Patch Changes
2418
+
2419
+ - Updated dependencies
2420
+ - @ai-sdk/provider@0.0.6
2421
+ - @ai-sdk/provider-utils@0.0.9
2422
+
2423
+ ## 0.0.14
2424
+
2425
+ ### Patch Changes
2426
+
2427
+ - 06e3934: feat (provider/anthropic): streaming tool calls
2428
+
2429
+ ## 0.0.13
2430
+
2431
+ ### Patch Changes
2432
+
2433
+ - Updated dependencies [0f6bc4e]
2434
+ - @ai-sdk/provider@0.0.5
2435
+ - @ai-sdk/provider-utils@0.0.8
2436
+
2437
+ ## 0.0.12
2438
+
2439
+ ### Patch Changes
2440
+
2441
+ - Updated dependencies [325ca55]
2442
+ - @ai-sdk/provider@0.0.4
2443
+ - @ai-sdk/provider-utils@0.0.7
2444
+
2445
+ ## 0.0.11
2446
+
2447
+ ### Patch Changes
2448
+
2449
+ - 5b01c13: feat (ai/core): add system message support in messages list
2450
+
2451
+ ## 0.0.10
2452
+
2453
+ ### Patch Changes
2454
+
2455
+ - Updated dependencies [276f22b]
2456
+ - @ai-sdk/provider-utils@0.0.6
2457
+
2458
+ ## 0.0.9
2459
+
2460
+ ### Patch Changes
2461
+
2462
+ - Updated dependencies [41d5736]
2463
+ - @ai-sdk/provider@0.0.3
2464
+ - @ai-sdk/provider-utils@0.0.5
2465
+
2466
+ ## 0.0.8
2467
+
2468
+ ### Patch Changes
2469
+
2470
+ - Updated dependencies [56ef84a]
2471
+ - @ai-sdk/provider-utils@0.0.4
2472
+
2473
+ ## 0.0.7
2474
+
2475
+ ### Patch Changes
2476
+
2477
+ - 25f3350: ai/core: add support for getting raw response headers.
2478
+ - Updated dependencies
2479
+ - @ai-sdk/provider@0.0.2
2480
+ - @ai-sdk/provider-utils@0.0.3
2481
+
2482
+ ## 0.0.6
2483
+
2484
+ ### Patch Changes
2485
+
2486
+ - eb150a6: ai/core: remove scaling of setting values (breaking change). If you were using the temperature, frequency penalty, or presence penalty settings, you need to update the providers and adjust the setting values.
2487
+ - Updated dependencies [eb150a6]
2488
+ - @ai-sdk/provider-utils@0.0.2
2489
+ - @ai-sdk/provider@0.0.1
2490
+
2491
+ ## 0.0.5
2492
+
2493
+ ### Patch Changes
2494
+
2495
+ - c6fc35b: Add custom header support.
2496
+
2497
+ ## 0.0.4
2498
+
2499
+ ### Patch Changes
2500
+
2501
+ - ab60b18: Simplified model construction by directly calling provider functions. Add create... functions to create provider instances.
2502
+
2503
+ ## 0.0.3
2504
+
2505
+ ### Patch Changes
2506
+
2507
+ - 587240b: Standardize providers to offer .chat() method
2508
+
2509
+ ## 0.0.2
2510
+
2511
+ ### Patch Changes
2512
+
2513
+ - 2bff460: Fix build for release.
2514
+
2515
+ ## 0.0.1
2516
+
2517
+ ### Patch Changes
2518
+
2519
+ - 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
2520
+ - Updated dependencies [7b8791d]
2521
+ - @ai-sdk/provider-utils@0.0.1