@ai-sdk/anthropic 4.0.0-beta.6 → 4.0.0-beta.68

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 +502 -4
  2. package/README.md +2 -0
  3. package/dist/index.d.ts +265 -68
  4. package/dist/index.js +2636 -1425
  5. package/dist/index.js.map +1 -1
  6. package/dist/internal/index.d.ts +234 -62
  7. package/dist/internal/index.js +2605 -1411
  8. package/dist/internal/index.js.map +1 -1
  9. package/docs/05-anthropic.mdx +303 -20
  10. package/package.json +16 -17
  11. package/src/{anthropic-messages-api.ts → anthropic-api.ts} +158 -17
  12. package/src/anthropic-error.ts +1 -1
  13. package/src/anthropic-files.ts +95 -0
  14. package/src/{anthropic-messages-options.ts → anthropic-language-model-options.ts} +104 -11
  15. package/src/{anthropic-messages-language-model.ts → anthropic-language-model.ts} +494 -96
  16. package/src/anthropic-message-metadata.ts +69 -9
  17. package/src/anthropic-prepare-tools.ts +31 -5
  18. package/src/anthropic-provider.ts +42 -13
  19. package/src/anthropic-tools.ts +31 -0
  20. package/src/convert-anthropic-usage.ts +109 -0
  21. package/src/{convert-to-anthropic-messages-prompt.ts → convert-to-anthropic-prompt.ts} +376 -198
  22. package/src/forward-anthropic-container-id-from-last-step.ts +2 -2
  23. package/src/get-cache-control.ts +5 -2
  24. package/src/index.ts +1 -1
  25. package/src/internal/index.ts +13 -2
  26. package/src/map-anthropic-stop-reason.ts +1 -1
  27. package/src/sanitize-json-schema.ts +203 -0
  28. package/src/skills/anthropic-skills-api.ts +44 -0
  29. package/src/skills/anthropic-skills.ts +132 -0
  30. package/src/tool/advisor_20260301.ts +128 -0
  31. package/src/tool/bash_20241022.ts +84 -13
  32. package/src/tool/bash_20250124.ts +84 -13
  33. package/src/tool/code-execution_20250522.ts +2 -2
  34. package/src/tool/code-execution_20250825.ts +2 -2
  35. package/src/tool/code-execution_20260120.ts +2 -2
  36. package/src/tool/computer_20241022.ts +2 -2
  37. package/src/tool/computer_20250124.ts +2 -2
  38. package/src/tool/computer_20251124.ts +2 -2
  39. package/src/tool/memory_20250818.ts +2 -2
  40. package/src/tool/text-editor_20241022.ts +2 -2
  41. package/src/tool/text-editor_20250124.ts +2 -2
  42. package/src/tool/text-editor_20250429.ts +2 -2
  43. package/src/tool/text-editor_20250728.ts +6 -3
  44. package/src/tool/tool-search-bm25_20251119.ts +2 -2
  45. package/src/tool/tool-search-regex_20251119.ts +2 -2
  46. package/src/tool/web-fetch-20250910.ts +2 -2
  47. package/src/tool/web-fetch-20260209.ts +2 -2
  48. package/src/tool/web-search_20250305.ts +2 -2
  49. package/src/tool/web-search_20260209.ts +2 -2
  50. package/dist/index.d.mts +0 -1090
  51. package/dist/index.mjs +0 -5242
  52. package/dist/index.mjs.map +0 -1
  53. package/dist/internal/index.d.mts +0 -969
  54. package/dist/internal/index.mjs +0 -5134
  55. package/dist/internal/index.mjs.map +0 -1
  56. package/src/convert-anthropic-messages-usage.ts +0 -73
package/CHANGELOG.md CHANGED
@@ -1,5 +1,503 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.0-beta.68
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0416e3e]
8
+ - @ai-sdk/provider@4.0.0-beta.20
9
+ - @ai-sdk/provider-utils@5.0.0-beta.50
10
+
11
+ ## 4.0.0-beta.67
12
+
13
+ ### Patch Changes
14
+
15
+ - b8396f0: trigger initial beta release
16
+ - Updated dependencies [b8396f0]
17
+ - @ai-sdk/provider-utils@5.0.0-beta.49
18
+ - @ai-sdk/provider@4.0.0-beta.19
19
+
20
+ ## 4.0.0-canary.66
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [aeda373]
25
+ - Updated dependencies [375fdd7]
26
+ - Updated dependencies [b4507d5]
27
+ - @ai-sdk/provider-utils@5.0.0-canary.48
28
+
29
+ ## 4.0.0-canary.65
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [bae5e2b]
34
+ - @ai-sdk/provider-utils@5.0.0-canary.47
35
+
36
+ ## 4.0.0-canary.64
37
+
38
+ ### Patch Changes
39
+
40
+ - 6b4d325: feat(provider/anthropic): add support for `claude-fable-5` and the `fallbacks` API parameter
41
+
42
+ ## 4.0.0-canary.63
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [ce769dd]
47
+ - @ai-sdk/provider@4.0.0-canary.18
48
+ - @ai-sdk/provider-utils@5.0.0-canary.46
49
+
50
+ ## 4.0.0-canary.62
51
+
52
+ ### Patch Changes
53
+
54
+ - ee798eb: chore(provider-utils): rename `Experimental_Sandbox` to `Experimental_SandboxSession`
55
+ - Updated dependencies [ee798eb]
56
+ - Updated dependencies [daf6637]
57
+ - @ai-sdk/provider-utils@5.0.0-canary.45
58
+
59
+ ## 4.0.0-canary.61
60
+
61
+ ### Patch Changes
62
+
63
+ - e02f041: feat(provider/anthropic): add support for `claude-opus-4-8`
64
+
65
+ ## 4.0.0-canary.60
66
+
67
+ ### Patch Changes
68
+
69
+ - 6c93e36: feat(provider-utils): add `spawnCommand` method to `Experimental_Sandbox` to allow for detached command execution
70
+ - Updated dependencies [6c93e36]
71
+ - Updated dependencies [f617ac2]
72
+ - @ai-sdk/provider-utils@5.0.0-canary.44
73
+
74
+ ## 4.0.0-canary.59
75
+
76
+ ### Patch Changes
77
+
78
+ - 648705c: fix(provider/anthropic): fix remaining errors with Anthropic `code_execution` tool dynamic calls from latest `web_fetch` or `web_search`
79
+
80
+ ## 4.0.0-canary.58
81
+
82
+ ### Patch Changes
83
+
84
+ - acdbf84: Handle errors from anthropic websearch tool
85
+
86
+ ## 4.0.0-canary.57
87
+
88
+ ### Patch Changes
89
+
90
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
91
+ - Updated dependencies [7fc6bd6]
92
+ - @ai-sdk/provider-utils@5.0.0-canary.43
93
+ - @ai-sdk/provider@4.0.0-canary.17
94
+
95
+ ## 4.0.0-canary.56
96
+
97
+ ### Patch Changes
98
+
99
+ - a6617c5: feat(provider-utils): add `readFile` and `writeFile` plus convenience wrappers to `Experimental_Sandbox` abstraction
100
+ - Updated dependencies [a6617c5]
101
+ - @ai-sdk/provider-utils@5.0.0-canary.42
102
+
103
+ ## 4.0.0-canary.55
104
+
105
+ ### Patch Changes
106
+
107
+ - a464505: fix(anthropic): propagate toModelOutput providerOption to anthropic tool results
108
+ - Updated dependencies [28dfa06]
109
+ - Updated dependencies [e93fa91]
110
+ - @ai-sdk/provider-utils@5.0.0-canary.41
111
+
112
+ ## 4.0.0-canary.54
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [a7de9c9]
117
+ - @ai-sdk/provider-utils@5.0.0-canary.40
118
+
119
+ ## 4.0.0-canary.53
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies [105f95b]
124
+ - @ai-sdk/provider-utils@5.0.0-canary.39
125
+
126
+ ## 4.0.0-canary.52
127
+
128
+ ### Patch Changes
129
+
130
+ - 8018480: feat(anthropic): add the new advisor tool
131
+
132
+ ## 4.0.0-canary.51
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies [ca446f8]
137
+ - @ai-sdk/provider-utils@5.0.0-canary.38
138
+
139
+ ## 4.0.0-canary.50
140
+
141
+ ### Patch Changes
142
+
143
+ - d848405: feat: add optional `abortSignal` parameters to sandbox command execution
144
+ - Updated dependencies [d848405]
145
+ - @ai-sdk/provider-utils@5.0.0-canary.37
146
+
147
+ ## 4.0.0-canary.49
148
+
149
+ ### Patch Changes
150
+
151
+ - Updated dependencies [ca39020]
152
+ - @ai-sdk/provider-utils@5.0.0-canary.36
153
+
154
+ ## 4.0.0-canary.48
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [f634bac]
159
+ - @ai-sdk/provider-utils@5.0.0-canary.35
160
+
161
+ ## 4.0.0-canary.47
162
+
163
+ ### Patch Changes
164
+
165
+ - 2610e84: feat(provider/anthropic): automatically use sandbox in bash tool
166
+ - Updated dependencies [69254e0]
167
+ - Updated dependencies [3015fc3]
168
+ - @ai-sdk/provider-utils@5.0.0-canary.34
169
+
170
+ ## 4.0.0-canary.46
171
+
172
+ ### Patch Changes
173
+
174
+ - e5c4f40: Remove stale `effort-2025-11-24` beta header — the extended thinking effort parameter is GA and no longer requires the beta flag. Vertex AI's strict validator was actively rejecting requests with this header.
175
+
176
+ ## 4.0.0-canary.45
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [2427d88]
181
+ - @ai-sdk/provider-utils@5.0.0-canary.33
182
+
183
+ ## 4.0.0-canary.44
184
+
185
+ ### Patch Changes
186
+
187
+ - 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types
188
+ - Updated dependencies [5463d0d]
189
+ - @ai-sdk/provider-utils@5.0.0-canary.32
190
+ - @ai-sdk/provider@4.0.0-canary.16
191
+
192
+ ## 4.0.0-canary.43
193
+
194
+ ### Patch Changes
195
+
196
+ - 0c4c275: trigger initial canary release
197
+ - Updated dependencies [0c4c275]
198
+ - @ai-sdk/provider-utils@5.0.0-canary.31
199
+ - @ai-sdk/provider@4.0.0-canary.15
200
+
201
+ ## 4.0.0-beta.42
202
+
203
+ ### Major Changes
204
+
205
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
206
+
207
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
208
+
209
+ ### Patch Changes
210
+
211
+ - Updated dependencies [08d2129]
212
+ - @ai-sdk/provider-utils@5.0.0-beta.30
213
+
214
+ ## 4.0.0-beta.41
215
+
216
+ ### Patch Changes
217
+
218
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
219
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
220
+ - Updated dependencies [9bd6512]
221
+ - Updated dependencies [258c093]
222
+ - Updated dependencies [b6783da]
223
+ - @ai-sdk/provider-utils@5.0.0-beta.29
224
+ - @ai-sdk/provider@4.0.0-beta.14
225
+
226
+ ## 4.0.0-beta.40
227
+
228
+ ### Patch Changes
229
+
230
+ - c012d57: feat(anthropic): sanitize the unsupported JSON schema validation properties
231
+
232
+ ## 4.0.0-beta.39
233
+
234
+ ### Patch Changes
235
+
236
+ - 9f0e36c: trigger release for all packages after provenance setup
237
+ - Updated dependencies [9f0e36c]
238
+ - @ai-sdk/provider@4.0.0-beta.13
239
+ - @ai-sdk/provider-utils@5.0.0-beta.28
240
+
241
+ ## 4.0.0-beta.38
242
+
243
+ ### Patch Changes
244
+
245
+ - 87d1723: chore(anthropic): remove unnecessary messages affix from Anthropic symbols and files
246
+ - 58a2ad7: fix: more precise default message for tool execution denial
247
+ - Updated dependencies [785fe16]
248
+ - Updated dependencies [67df0a0]
249
+ - Updated dependencies [befb78c]
250
+ - Updated dependencies [0458559]
251
+ - Updated dependencies [5852c0a]
252
+ - Updated dependencies [fc92055]
253
+ - @ai-sdk/provider-utils@5.0.0-beta.27
254
+
255
+ ## 4.0.0-beta.37
256
+
257
+ ### Patch Changes
258
+
259
+ - Updated dependencies [2e98477]
260
+ - @ai-sdk/provider-utils@5.0.0-beta.26
261
+
262
+ ## 4.0.0-beta.36
263
+
264
+ ### Patch Changes
265
+
266
+ - Updated dependencies [eea8d98]
267
+ - @ai-sdk/provider-utils@5.0.0-beta.25
268
+
269
+ ## 4.0.0-beta.35
270
+
271
+ ### Patch Changes
272
+
273
+ - Updated dependencies [f807e45]
274
+ - @ai-sdk/provider-utils@5.0.0-beta.24
275
+
276
+ ## 4.0.0-beta.34
277
+
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies [350ea38]
281
+ - @ai-sdk/provider-utils@5.0.0-beta.23
282
+
283
+ ## 4.0.0-beta.33
284
+
285
+ ### Major Changes
286
+
287
+ - 832f86f: fix(anthropic): remove cacheCreationInputTokens from providerMetadata
288
+
289
+ ## 4.0.0-beta.32
290
+
291
+ ### Patch Changes
292
+
293
+ - ad0b376: fix(provider/anthropic): stop adding `fine-grained-tool-streaming-2025-05-14` beta for `claude-opus-4-7`
294
+
295
+ ## 4.0.0-beta.31
296
+
297
+ ### Patch Changes
298
+
299
+ - Updated dependencies [083947b]
300
+ - @ai-sdk/provider-utils@5.0.0-beta.22
301
+
302
+ ## 4.0.0-beta.30
303
+
304
+ ### Patch Changes
305
+
306
+ - 0d8f107: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancements
307
+
308
+ ## 4.0.0-beta.29
309
+
310
+ ### Patch Changes
311
+
312
+ - Updated dependencies [add1126]
313
+ - @ai-sdk/provider-utils@5.0.0-beta.21
314
+
315
+ ## 4.0.0-beta.28
316
+
317
+ ### Patch Changes
318
+
319
+ - b3976a2: Add workflow serialization support to all provider models.
320
+
321
+ **`@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.
322
+
323
+ **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.
324
+
325
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
326
+
327
+ - ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
328
+ - Updated dependencies [b3976a2]
329
+ - Updated dependencies [ff5eba1]
330
+ - @ai-sdk/provider-utils@5.0.0-beta.20
331
+ - @ai-sdk/provider@4.0.0-beta.12
332
+
333
+ ## 4.0.0-beta.27
334
+
335
+ ### Major Changes
336
+
337
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
338
+
339
+ ### Patch Changes
340
+
341
+ - Updated dependencies [ef992f8]
342
+ - @ai-sdk/provider@4.0.0-beta.11
343
+ - @ai-sdk/provider-utils@5.0.0-beta.19
344
+
345
+ ## 4.0.0-beta.26
346
+
347
+ ### Patch Changes
348
+
349
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
350
+ - Updated dependencies [90e2d8a]
351
+ - @ai-sdk/provider-utils@5.0.0-beta.18
352
+
353
+ ## 4.0.0-beta.25
354
+
355
+ ### Patch Changes
356
+
357
+ - 09bd27b: feat (provider/anthropic): add support for inference_geo provider option
358
+
359
+ ## 4.0.0-beta.24
360
+
361
+ ### Patch Changes
362
+
363
+ - Updated dependencies [3ae1786]
364
+ - @ai-sdk/provider-utils@5.0.0-beta.17
365
+
366
+ ## 4.0.0-beta.23
367
+
368
+ ### Patch Changes
369
+
370
+ - Updated dependencies [176466a]
371
+ - @ai-sdk/provider@4.0.0-beta.10
372
+ - @ai-sdk/provider-utils@5.0.0-beta.16
373
+
374
+ ## 4.0.0-beta.22
375
+
376
+ ### Patch Changes
377
+
378
+ - e311194: feat(ai): allow passing provider instance to `uploadFile` and `uploadSkill` as shorthand
379
+ - Updated dependencies [e311194]
380
+ - @ai-sdk/provider@4.0.0-beta.9
381
+ - @ai-sdk/provider-utils@5.0.0-beta.15
382
+
383
+ ## 4.0.0-beta.21
384
+
385
+ ### Patch Changes
386
+
387
+ - 34bd95d: feat(ai): add support for uploading provider skills using the provider references abstraction
388
+ - Updated dependencies [34bd95d]
389
+ - Updated dependencies [008271d]
390
+ - @ai-sdk/provider@4.0.0-beta.8
391
+ - @ai-sdk/provider-utils@5.0.0-beta.14
392
+
393
+ ## 4.0.0-beta.20
394
+
395
+ ### Patch Changes
396
+
397
+ - Updated dependencies [b0c2869]
398
+ - Updated dependencies [7e26e81]
399
+ - @ai-sdk/provider-utils@5.0.0-beta.13
400
+
401
+ ## 4.0.0-beta.19
402
+
403
+ ### Patch Changes
404
+
405
+ - Updated dependencies [46d1149]
406
+ - @ai-sdk/provider-utils@5.0.0-beta.12
407
+
408
+ ## 4.0.0-beta.18
409
+
410
+ ### Patch Changes
411
+
412
+ - 6fd51c0: fix(provider): preserve error type prefix in getErrorMessage
413
+ - Updated dependencies [6fd51c0]
414
+ - @ai-sdk/provider-utils@5.0.0-beta.11
415
+ - @ai-sdk/provider@4.0.0-beta.7
416
+
417
+ ## 4.0.0-beta.17
418
+
419
+ ### Patch Changes
420
+
421
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
422
+ - Updated dependencies [c29a26f]
423
+ - @ai-sdk/provider-utils@5.0.0-beta.10
424
+ - @ai-sdk/provider@4.0.0-beta.6
425
+
426
+ ## 4.0.0-beta.16
427
+
428
+ ### Patch Changes
429
+
430
+ - 38fc777: Add AI Gateway hint to provider READMEs
431
+
432
+ ## 4.0.0-beta.15
433
+
434
+ ### Patch Changes
435
+
436
+ - f57c702: fix(anthropic): allow both temperature and topP for non-Anthropic models using the Anthropic-compatible API
437
+
438
+ The temperature/topP mutual exclusivity check now only applies to known Anthropic models (model IDs starting with `claude-`). Non-Anthropic models using the Anthropic-compatible API (e.g. Minimax) can now send both parameters as required by their APIs.
439
+
440
+ ## 4.0.0-beta.14
441
+
442
+ ### Patch Changes
443
+
444
+ - Updated dependencies [2e17091]
445
+ - @ai-sdk/provider-utils@5.0.0-beta.9
446
+
447
+ ## 4.0.0-beta.13
448
+
449
+ ### Patch Changes
450
+
451
+ - Updated dependencies [986c6fd]
452
+ - Updated dependencies [493295c]
453
+ - @ai-sdk/provider-utils@5.0.0-beta.8
454
+
455
+ ## 4.0.0-beta.12
456
+
457
+ ### Patch Changes
458
+
459
+ - Updated dependencies [1f509d4]
460
+ - @ai-sdk/provider-utils@5.0.0-beta.7
461
+ - @ai-sdk/provider@4.0.0-beta.5
462
+
463
+ ## 4.0.0-beta.11
464
+
465
+ ### Patch Changes
466
+
467
+ - 0ee8aec: feat (provider/anthropic): support passing metadata.user_id
468
+
469
+ ## 4.0.0-beta.10
470
+
471
+ ### Patch Changes
472
+
473
+ - 3887c70: feat(provider): add new top-level reasoning parameter to spec and support it in `generateText` and `streamText`
474
+ - Updated dependencies [3887c70]
475
+ - @ai-sdk/provider-utils@5.0.0-beta.6
476
+ - @ai-sdk/provider@4.0.0-beta.4
477
+
478
+ ## 4.0.0-beta.9
479
+
480
+ ### Patch Changes
481
+
482
+ - Updated dependencies [776b617]
483
+ - @ai-sdk/provider-utils@5.0.0-beta.5
484
+ - @ai-sdk/provider@4.0.0-beta.3
485
+
486
+ ## 4.0.0-beta.8
487
+
488
+ ### Patch Changes
489
+
490
+ - Updated dependencies [61753c3]
491
+ - @ai-sdk/provider-utils@5.0.0-beta.4
492
+
493
+ ## 4.0.0-beta.7
494
+
495
+ ### Patch Changes
496
+
497
+ - Updated dependencies [f7d4f01]
498
+ - @ai-sdk/provider-utils@5.0.0-beta.3
499
+ - @ai-sdk/provider@4.0.0-beta.2
500
+
3
501
  ## 4.0.0-beta.6
4
502
 
5
503
  ### Patch Changes
@@ -466,13 +964,13 @@
466
964
  Before
467
965
 
468
966
  ```ts
469
- model.textEmbeddingModel('my-model-id');
967
+ model.textEmbeddingModel("my-model-id");
470
968
  ```
471
969
 
472
970
  After
473
971
 
474
972
  ```ts
475
- model.embeddingModel('my-model-id');
973
+ model.embeddingModel("my-model-id");
476
974
  ```
477
975
 
478
976
  - f33a018: chore: add model ID for Haiku 4.5
@@ -812,13 +1310,13 @@
812
1310
  Before
813
1311
 
814
1312
  ```ts
815
- model.textEmbeddingModel('my-model-id');
1313
+ model.textEmbeddingModel("my-model-id");
816
1314
  ```
817
1315
 
818
1316
  After
819
1317
 
820
1318
  ```ts
821
- model.embeddingModel('my-model-id');
1319
+ model.embeddingModel("my-model-id");
822
1320
  ```
823
1321
 
824
1322
  - Updated dependencies [8d9e8ad]
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Anthropic (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).
6
+
5
7
  ## Setup
6
8
 
7
9
  The Anthropic provider is available in the `@ai-sdk/anthropic` module. You can install it with