@ai-sdk/google-vertex 5.0.0-beta.11 → 5.0.0-beta.111

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 (80) hide show
  1. package/CHANGELOG.md +942 -8
  2. package/README.md +65 -2
  3. package/dist/anthropic/edge/index.d.ts +18 -151
  4. package/dist/anthropic/edge/index.js +88 -70
  5. package/dist/anthropic/edge/index.js.map +1 -1
  6. package/dist/anthropic/index.d.ts +18 -151
  7. package/dist/anthropic/index.js +88 -81
  8. package/dist/anthropic/index.js.map +1 -1
  9. package/dist/edge/index.d.ts +49 -20
  10. package/dist/edge/index.js +625 -275
  11. package/dist/edge/index.js.map +1 -1
  12. package/dist/index.d.ts +61 -23
  13. package/dist/index.js +634 -293
  14. package/dist/index.js.map +1 -1
  15. package/dist/maas/edge/index.d.ts +76 -0
  16. package/dist/maas/edge/index.js +209 -0
  17. package/dist/maas/edge/index.js.map +1 -0
  18. package/dist/maas/index.d.ts +60 -0
  19. package/dist/maas/index.js +109 -0
  20. package/dist/maas/index.js.map +1 -0
  21. package/dist/xai/edge/index.d.ts +92 -0
  22. package/dist/xai/edge/index.js +259 -0
  23. package/dist/xai/edge/index.js.map +1 -0
  24. package/dist/xai/index.d.ts +76 -0
  25. package/dist/xai/index.js +159 -0
  26. package/dist/xai/index.js.map +1 -0
  27. package/docs/16-google-vertex.mdx +640 -102
  28. package/maas/edge.d.ts +1 -0
  29. package/maas/index.d.ts +1 -0
  30. package/package.json +49 -24
  31. package/src/anthropic/edge/google-vertex-anthropic-provider-edge.ts +17 -13
  32. package/src/anthropic/edge/index.ts +6 -2
  33. package/src/anthropic/{google-vertex-anthropic-messages-options.ts → google-vertex-anthropic-options.ts} +4 -1
  34. package/src/anthropic/google-vertex-anthropic-provider-node.ts +18 -13
  35. package/src/anthropic/google-vertex-anthropic-provider.ts +68 -19
  36. package/src/anthropic/index.ts +6 -2
  37. package/src/edge/google-vertex-provider-edge.ts +10 -12
  38. package/src/edge/index.ts +8 -1
  39. package/src/google-vertex-auth-google-auth-library.ts +13 -26
  40. package/src/google-vertex-config.ts +2 -2
  41. package/src/{google-vertex-embedding-options.ts → google-vertex-embedding-model-options.ts} +1 -0
  42. package/src/google-vertex-embedding-model.ts +90 -7
  43. package/src/google-vertex-image-model-options.ts +74 -0
  44. package/src/google-vertex-image-model.ts +89 -116
  45. package/src/google-vertex-options.ts +1 -1
  46. package/src/google-vertex-provider-base.ts +311 -0
  47. package/src/google-vertex-provider.ts +43 -233
  48. package/src/google-vertex-speech-model-options.ts +11 -0
  49. package/src/google-vertex-transcription-model-options.ts +46 -0
  50. package/src/google-vertex-transcription-model.ts +231 -0
  51. package/src/google-vertex-video-model-options.ts +49 -0
  52. package/src/google-vertex-video-model.ts +32 -68
  53. package/src/index.ts +20 -5
  54. package/src/maas/edge/google-vertex-maas-provider-edge.ts +64 -0
  55. package/src/maas/edge/index.ts +13 -0
  56. package/src/maas/google-vertex-maas-options.ts +15 -0
  57. package/src/maas/google-vertex-maas-provider-node.ts +65 -0
  58. package/src/maas/google-vertex-maas-provider.ts +122 -0
  59. package/src/maas/index.ts +13 -0
  60. package/src/xai/edge/google-vertex-xai-provider-edge.ts +61 -0
  61. package/src/xai/edge/index.ts +9 -0
  62. package/src/xai/google-vertex-xai-options.ts +7 -0
  63. package/src/xai/google-vertex-xai-provider-node.ts +62 -0
  64. package/src/xai/google-vertex-xai-provider.ts +212 -0
  65. package/src/xai/index.ts +9 -0
  66. package/xai/edge.d.ts +1 -0
  67. package/xai/index.d.ts +1 -0
  68. package/dist/anthropic/edge/index.d.mts +0 -231
  69. package/dist/anthropic/edge/index.mjs +0 -259
  70. package/dist/anthropic/edge/index.mjs.map +0 -1
  71. package/dist/anthropic/index.d.mts +0 -215
  72. package/dist/anthropic/index.mjs +0 -164
  73. package/dist/anthropic/index.mjs.map +0 -1
  74. package/dist/edge/index.d.mts +0 -160
  75. package/dist/edge/index.mjs +0 -1049
  76. package/dist/edge/index.mjs.map +0 -1
  77. package/dist/index.d.mts +0 -219
  78. package/dist/index.mjs +0 -960
  79. package/dist/index.mjs.map +0 -1
  80. package/src/google-vertex-provider-node.ts +0 -49
package/CHANGELOG.md CHANGED
@@ -1,5 +1,939 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.0-beta.111
4
+
5
+ ### Patch Changes
6
+
7
+ - 427a596: Route `gemini-embedding-2` / `gemini-embedding-2-preview` to the `:embedContent` endpoint, which is the only one those models support (`:predict` returns 400 FAILED_PRECONDITION)
8
+
9
+ ## 5.0.0-beta.110
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [947cdab]
14
+ - @ai-sdk/google@4.0.0-beta.84
15
+
16
+ ## 5.0.0-beta.109
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [bdb9ea1]
21
+ - @ai-sdk/google@4.0.0-beta.83
22
+
23
+ ## 5.0.0-beta.108
24
+
25
+ ### Patch Changes
26
+
27
+ - b8396f0: trigger initial beta release
28
+ - Updated dependencies [b8396f0]
29
+ - @ai-sdk/anthropic@4.0.0-beta.67
30
+ - @ai-sdk/google@4.0.0-beta.82
31
+ - @ai-sdk/openai-compatible@3.0.0-beta.57
32
+ - @ai-sdk/provider-utils@5.0.0-beta.49
33
+ - @ai-sdk/provider@4.0.0-beta.19
34
+
35
+ ## 5.0.0-canary.107
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [5878b40]
40
+ - Updated dependencies [aeda373]
41
+ - Updated dependencies [375fdd7]
42
+ - Updated dependencies [b4507d5]
43
+ - @ai-sdk/google@4.0.0-canary.81
44
+ - @ai-sdk/provider-utils@5.0.0-canary.48
45
+ - @ai-sdk/anthropic@4.0.0-canary.66
46
+ - @ai-sdk/openai-compatible@3.0.0-canary.56
47
+
48
+ ## 5.0.0-canary.106
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [bae5e2b]
53
+ - @ai-sdk/provider-utils@5.0.0-canary.47
54
+ - @ai-sdk/anthropic@4.0.0-canary.65
55
+ - @ai-sdk/google@4.0.0-canary.80
56
+ - @ai-sdk/openai-compatible@3.0.0-canary.55
57
+
58
+ ## 5.0.0-canary.105
59
+
60
+ ### Patch Changes
61
+
62
+ - 6dd2fd7: feat(provider/google-vertex): add Google Cloud Speech-to-Text transcription model support
63
+ - 6b4d325: feat(provider/anthropic): add support for `claude-fable-5` and the `fallbacks` API parameter
64
+ - Updated dependencies [6b4d325]
65
+ - @ai-sdk/anthropic@4.0.0-canary.64
66
+
67
+ ## 5.0.0-canary.104
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [ce769dd]
72
+ - @ai-sdk/provider@4.0.0-canary.18
73
+ - @ai-sdk/google@4.0.0-canary.79
74
+ - @ai-sdk/anthropic@4.0.0-canary.63
75
+ - @ai-sdk/openai-compatible@3.0.0-canary.54
76
+ - @ai-sdk/provider-utils@5.0.0-canary.46
77
+
78
+ ## 5.0.0-canary.103
79
+
80
+ ### Patch Changes
81
+
82
+ - 2ce3c65: feat(provider/google-vertex): add Gemini text-to-speech (speech) model support
83
+ - Updated dependencies [2ce3c65]
84
+ - @ai-sdk/google@4.0.0-canary.78
85
+
86
+ ## 5.0.0-canary.102
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [ee798eb]
91
+ - Updated dependencies [daf6637]
92
+ - @ai-sdk/provider-utils@5.0.0-canary.45
93
+ - @ai-sdk/anthropic@4.0.0-canary.62
94
+ - @ai-sdk/google@4.0.0-canary.77
95
+ - @ai-sdk/openai-compatible@3.0.0-canary.53
96
+
97
+ ## 5.0.0-canary.101
98
+
99
+ ### Patch Changes
100
+
101
+ - ec2e752: fix(google-vertex): support regional endpoints for vertex MaaS
102
+
103
+ ## 5.0.0-canary.100
104
+
105
+ ### Patch Changes
106
+
107
+ - b70f6ec: fix(google-vertex): support for eu/us multi region gemini endpoints
108
+
109
+ ## 5.0.0-canary.99
110
+
111
+ ### Patch Changes
112
+
113
+ - bb93832: fix(vertex-anthropic): support eu/us multi-region anthropic endpoints
114
+ - Updated dependencies [b563707]
115
+ - @ai-sdk/google@4.0.0-canary.76
116
+
117
+ ## 5.0.0-canary.98
118
+
119
+ ### Patch Changes
120
+
121
+ - 00a0f36: feat(google, google-vertex): added `gemini-embedding-2`, `deep-research-max-preview-04-2026` and `deep-research-preview-04-2026`
122
+ - Updated dependencies [00a0f36]
123
+ - @ai-sdk/google@4.0.0-canary.75
124
+
125
+ ## 5.0.0-canary.97
126
+
127
+ ### Patch Changes
128
+
129
+ - e02f041: feat(provider/anthropic): add support for `claude-opus-4-8`
130
+ - Updated dependencies [e02f041]
131
+ - @ai-sdk/anthropic@4.0.0-canary.61
132
+
133
+ ## 5.0.0-canary.96
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [a8d70b6]
138
+ - @ai-sdk/google@4.0.0-canary.74
139
+
140
+ ## 5.0.0-canary.95
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [6c93e36]
145
+ - Updated dependencies [f617ac2]
146
+ - @ai-sdk/provider-utils@5.0.0-canary.44
147
+ - @ai-sdk/anthropic@4.0.0-canary.60
148
+ - @ai-sdk/google@4.0.0-canary.73
149
+ - @ai-sdk/openai-compatible@3.0.0-canary.52
150
+
151
+ ## 5.0.0-canary.94
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [9f1e1ba]
156
+ - @ai-sdk/openai-compatible@3.0.0-canary.51
157
+
158
+ ## 5.0.0-canary.93
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [648705c]
163
+ - @ai-sdk/anthropic@4.0.0-canary.59
164
+
165
+ ## 5.0.0-canary.92
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies [acdbf84]
170
+ - @ai-sdk/anthropic@4.0.0-canary.58
171
+
172
+ ## 5.0.0-canary.91
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [b71c0d7]
177
+ - @ai-sdk/google@4.0.0-canary.72
178
+
179
+ ## 5.0.0-canary.90
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [045d2e8]
184
+ - @ai-sdk/google@4.0.0-canary.71
185
+
186
+ ## 5.0.0-canary.89
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies [aeea161]
191
+ - @ai-sdk/google@4.0.0-canary.70
192
+
193
+ ## 5.0.0-canary.88
194
+
195
+ ### Patch Changes
196
+
197
+ - Updated dependencies [7f04802]
198
+ - @ai-sdk/google@4.0.0-canary.69
199
+
200
+ ## 5.0.0-canary.87
201
+
202
+ ### Patch Changes
203
+
204
+ - 546cefe: feat(provider/google): add `gemini-3.5-flash`
205
+ - Updated dependencies [a2609df]
206
+ - Updated dependencies [546cefe]
207
+ - @ai-sdk/google@4.0.0-canary.68
208
+
209
+ ## 5.0.0-canary.86
210
+
211
+ ### Patch Changes
212
+
213
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
214
+ - Updated dependencies [7fc6bd6]
215
+ - @ai-sdk/anthropic@4.0.0-canary.57
216
+ - @ai-sdk/google@4.0.0-canary.67
217
+ - @ai-sdk/openai-compatible@3.0.0-canary.50
218
+ - @ai-sdk/provider-utils@5.0.0-canary.43
219
+ - @ai-sdk/provider@4.0.0-canary.17
220
+
221
+ ## 5.0.0-canary.85
222
+
223
+ ### Patch Changes
224
+
225
+ - 42bdfa4: fix(google-vertex): propagate project-id set in provider instance creation
226
+ - Updated dependencies [a6617c5]
227
+ - @ai-sdk/provider-utils@5.0.0-canary.42
228
+ - @ai-sdk/anthropic@4.0.0-canary.56
229
+ - @ai-sdk/google@4.0.0-canary.66
230
+ - @ai-sdk/openai-compatible@3.0.0-canary.49
231
+
232
+ ## 5.0.0-canary.84
233
+
234
+ ### Patch Changes
235
+
236
+ - Updated dependencies [4e825f3]
237
+ - @ai-sdk/google@4.0.0-canary.65
238
+
239
+ ## 5.0.0-canary.83
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies [41da50c]
244
+ - @ai-sdk/google@4.0.0-canary.64
245
+
246
+ ## 5.0.0-canary.82
247
+
248
+ ### Patch Changes
249
+
250
+ - Updated dependencies [a464505]
251
+ - Updated dependencies [28dfa06]
252
+ - Updated dependencies [e93fa91]
253
+ - @ai-sdk/anthropic@4.0.0-canary.55
254
+ - @ai-sdk/provider-utils@5.0.0-canary.41
255
+ - @ai-sdk/google@4.0.0-canary.63
256
+ - @ai-sdk/openai-compatible@3.0.0-canary.48
257
+
258
+ ## 5.0.0-canary.81
259
+
260
+ ### Patch Changes
261
+
262
+ - Updated dependencies [a7de9c9]
263
+ - @ai-sdk/provider-utils@5.0.0-canary.40
264
+ - @ai-sdk/anthropic@4.0.0-canary.54
265
+ - @ai-sdk/google@4.0.0-canary.62
266
+ - @ai-sdk/openai-compatible@3.0.0-canary.47
267
+
268
+ ## 5.0.0-canary.80
269
+
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies [105f95b]
273
+ - @ai-sdk/provider-utils@5.0.0-canary.39
274
+ - @ai-sdk/anthropic@4.0.0-canary.53
275
+ - @ai-sdk/google@4.0.0-canary.61
276
+ - @ai-sdk/openai-compatible@3.0.0-canary.46
277
+
278
+ ## 5.0.0-canary.79
279
+
280
+ ### Patch Changes
281
+
282
+ - Updated dependencies [8018480]
283
+ - Updated dependencies [6a26901]
284
+ - @ai-sdk/anthropic@4.0.0-canary.52
285
+ - @ai-sdk/google@4.0.0-canary.60
286
+
287
+ ## 5.0.0-canary.78
288
+
289
+ ### Patch Changes
290
+
291
+ - Updated dependencies [ca446f8]
292
+ - Updated dependencies [db394ab]
293
+ - @ai-sdk/provider-utils@5.0.0-canary.38
294
+ - @ai-sdk/google@4.0.0-canary.59
295
+ - @ai-sdk/anthropic@4.0.0-canary.51
296
+ - @ai-sdk/openai-compatible@3.0.0-canary.45
297
+
298
+ ## 5.0.0-canary.77
299
+
300
+ ### Patch Changes
301
+
302
+ - Updated dependencies [d848405]
303
+ - @ai-sdk/provider-utils@5.0.0-canary.37
304
+ - @ai-sdk/anthropic@4.0.0-canary.50
305
+ - @ai-sdk/google@4.0.0-canary.58
306
+ - @ai-sdk/openai-compatible@3.0.0-canary.44
307
+
308
+ ## 5.0.0-canary.76
309
+
310
+ ### Patch Changes
311
+
312
+ - Updated dependencies [ca39020]
313
+ - @ai-sdk/provider-utils@5.0.0-canary.36
314
+ - @ai-sdk/anthropic@4.0.0-canary.49
315
+ - @ai-sdk/google@4.0.0-canary.57
316
+ - @ai-sdk/openai-compatible@3.0.0-canary.43
317
+
318
+ ## 5.0.0-canary.75
319
+
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies [f634bac]
323
+ - @ai-sdk/provider-utils@5.0.0-canary.35
324
+ - @ai-sdk/anthropic@4.0.0-canary.48
325
+ - @ai-sdk/google@4.0.0-canary.56
326
+ - @ai-sdk/openai-compatible@3.0.0-canary.42
327
+
328
+ ## 5.0.0-canary.74
329
+
330
+ ### Patch Changes
331
+
332
+ - Updated dependencies [2610e84]
333
+ - Updated dependencies [ebbb0f2]
334
+ - Updated dependencies [69254e0]
335
+ - Updated dependencies [3015fc3]
336
+ - @ai-sdk/anthropic@4.0.0-canary.47
337
+ - @ai-sdk/google@4.0.0-canary.55
338
+ - @ai-sdk/provider-utils@5.0.0-canary.34
339
+ - @ai-sdk/openai-compatible@3.0.0-canary.41
340
+
341
+ ## 5.0.0-canary.73
342
+
343
+ ### Patch Changes
344
+
345
+ - Updated dependencies [b04e23e]
346
+ - @ai-sdk/google@4.0.0-canary.54
347
+
348
+ ## 5.0.0-canary.72
349
+
350
+ ### Patch Changes
351
+
352
+ - Updated dependencies [e5c4f40]
353
+ - @ai-sdk/anthropic@4.0.0-canary.46
354
+
355
+ ## 5.0.0-canary.71
356
+
357
+ ### Patch Changes
358
+
359
+ - Updated dependencies [2427d88]
360
+ - @ai-sdk/provider-utils@5.0.0-canary.33
361
+ - @ai-sdk/anthropic@4.0.0-canary.45
362
+ - @ai-sdk/google@4.0.0-canary.53
363
+ - @ai-sdk/openai-compatible@3.0.0-canary.40
364
+
365
+ ## 5.0.0-canary.70
366
+
367
+ ### Patch Changes
368
+
369
+ - Updated dependencies [cfca634]
370
+ - @ai-sdk/google@4.0.0-canary.52
371
+
372
+ ## 5.0.0-canary.69
373
+
374
+ ### Patch Changes
375
+
376
+ - Updated dependencies [5463d0d]
377
+ - @ai-sdk/provider-utils@5.0.0-canary.32
378
+ - @ai-sdk/provider@4.0.0-canary.16
379
+ - @ai-sdk/anthropic@4.0.0-canary.44
380
+ - @ai-sdk/google@4.0.0-canary.51
381
+ - @ai-sdk/openai-compatible@3.0.0-canary.39
382
+
383
+ ## 5.0.0-canary.68
384
+
385
+ ### Patch Changes
386
+
387
+ - Updated dependencies [cd9c311]
388
+ - @ai-sdk/openai-compatible@3.0.0-canary.38
389
+
390
+ ## 5.0.0-canary.67
391
+
392
+ ### Patch Changes
393
+
394
+ - 0c4c275: trigger initial canary release
395
+ - Updated dependencies [0c4c275]
396
+ - @ai-sdk/openai-compatible@3.0.0-canary.37
397
+ - @ai-sdk/provider-utils@5.0.0-canary.31
398
+ - @ai-sdk/anthropic@4.0.0-canary.43
399
+ - @ai-sdk/provider@4.0.0-canary.15
400
+ - @ai-sdk/google@4.0.0-canary.50
401
+
402
+ ## 5.0.0-beta.66
403
+
404
+ ### Patch Changes
405
+
406
+ - 1f4058f: fix(vertex): use correct import for token generator
407
+
408
+ ## 5.0.0-beta.65
409
+
410
+ ### Patch Changes
411
+
412
+ - 96d056d: fix(provider/google-vertex): avoid recreating Node GoogleAuth clients for repeated requests
413
+
414
+ Create Google auth token generators per provider instance instead of using a
415
+ module-level shared `GoogleAuth` cache. This avoids unnecessary `GoogleAuth`
416
+ recreation when `googleAuthOptions` are omitted or when multiple provider
417
+ instances use equivalent auth settings.
418
+
419
+ ## 5.0.0-beta.64
420
+
421
+ ### Patch Changes
422
+
423
+ - e59c955: feat(vertex): add grok models to vertex provider
424
+ - Updated dependencies [e59c955]
425
+ - @ai-sdk/openai-compatible@3.0.0-beta.36
426
+
427
+ ## 5.0.0-beta.63
428
+
429
+ ### Major Changes
430
+
431
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
432
+
433
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
434
+
435
+ ### Patch Changes
436
+
437
+ - 780e563: feat(provider/google-vertex): allow overriding Vertex Anthropic auth token generation
438
+ - Updated dependencies [08d2129]
439
+ - Updated dependencies [04e9009]
440
+ - @ai-sdk/provider-utils@5.0.0-beta.30
441
+ - @ai-sdk/openai-compatible@3.0.0-beta.35
442
+ - @ai-sdk/anthropic@4.0.0-beta.42
443
+ - @ai-sdk/google@4.0.0-beta.49
444
+
445
+ ## 5.0.0-beta.62
446
+
447
+ ### Patch Changes
448
+
449
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
450
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
451
+ - Updated dependencies [9bd6512]
452
+ - Updated dependencies [258c093]
453
+ - Updated dependencies [b6783da]
454
+ - @ai-sdk/openai-compatible@3.0.0-beta.34
455
+ - @ai-sdk/provider-utils@5.0.0-beta.29
456
+ - @ai-sdk/anthropic@4.0.0-beta.41
457
+ - @ai-sdk/provider@4.0.0-beta.14
458
+ - @ai-sdk/google@4.0.0-beta.48
459
+
460
+ ## 5.0.0-beta.61
461
+
462
+ ### Patch Changes
463
+
464
+ - Updated dependencies [c012d57]
465
+ - @ai-sdk/anthropic@4.0.0-beta.40
466
+
467
+ ## 5.0.0-beta.60
468
+
469
+ ### Patch Changes
470
+
471
+ - 9f0e36c: trigger release for all packages after provenance setup
472
+ - Updated dependencies [9f0e36c]
473
+ - @ai-sdk/anthropic@4.0.0-beta.39
474
+ - @ai-sdk/google@4.0.0-beta.47
475
+ - @ai-sdk/openai-compatible@3.0.0-beta.33
476
+ - @ai-sdk/provider@4.0.0-beta.13
477
+ - @ai-sdk/provider-utils@5.0.0-beta.28
478
+
479
+ ## 5.0.0-beta.59
480
+
481
+ ### Patch Changes
482
+
483
+ - 87d1723: chore(anthropic): remove unnecessary messages affix from Anthropic symbols and files
484
+ - Updated dependencies [ab81968]
485
+ - Updated dependencies [785fe16]
486
+ - Updated dependencies [67df0a0]
487
+ - Updated dependencies [87d1723]
488
+ - Updated dependencies [befb78c]
489
+ - Updated dependencies [0458559]
490
+ - Updated dependencies [58a2ad7]
491
+ - Updated dependencies [5852c0a]
492
+ - Updated dependencies [84f36e0]
493
+ - Updated dependencies [fc92055]
494
+ - @ai-sdk/openai-compatible@3.0.0-beta.32
495
+ - @ai-sdk/provider-utils@5.0.0-beta.27
496
+ - @ai-sdk/anthropic@4.0.0-beta.38
497
+ - @ai-sdk/google@4.0.0-beta.46
498
+
499
+ ## 5.0.0-beta.58
500
+
501
+ ### Patch Changes
502
+
503
+ - a3757d7: chore(provider/google): remove useless GenerativeAI affix from types and classes for consistency
504
+ - Updated dependencies [a3757d7]
505
+ - Updated dependencies [2e98477]
506
+ - Updated dependencies [bfb756d]
507
+ - @ai-sdk/google@4.0.0-beta.45
508
+ - @ai-sdk/provider-utils@5.0.0-beta.26
509
+ - @ai-sdk/openai-compatible@3.0.0-beta.31
510
+ - @ai-sdk/anthropic@4.0.0-beta.37
511
+
512
+ ## 5.0.0-beta.57
513
+
514
+ ### Patch Changes
515
+
516
+ - Updated dependencies [eea8d98]
517
+ - @ai-sdk/provider-utils@5.0.0-beta.25
518
+ - @ai-sdk/anthropic@4.0.0-beta.36
519
+ - @ai-sdk/google@4.0.0-beta.44
520
+ - @ai-sdk/openai-compatible@3.0.0-beta.30
521
+
522
+ ## 5.0.0-beta.56
523
+
524
+ ### Patch Changes
525
+
526
+ - Updated dependencies [f807e45]
527
+ - @ai-sdk/provider-utils@5.0.0-beta.24
528
+ - @ai-sdk/openai-compatible@3.0.0-beta.29
529
+ - @ai-sdk/anthropic@4.0.0-beta.35
530
+ - @ai-sdk/google@4.0.0-beta.43
531
+
532
+ ## 5.0.0-beta.55
533
+
534
+ ### Patch Changes
535
+
536
+ - Updated dependencies [350ea38]
537
+ - @ai-sdk/provider-utils@5.0.0-beta.23
538
+ - @ai-sdk/anthropic@4.0.0-beta.34
539
+ - @ai-sdk/google@4.0.0-beta.42
540
+ - @ai-sdk/openai-compatible@3.0.0-beta.28
541
+
542
+ ## 5.0.0-beta.54
543
+
544
+ ### Major Changes
545
+
546
+ - 832f86f: fix(anthropic): remove cacheCreationInputTokens from providerMetadata
547
+
548
+ ### Patch Changes
549
+
550
+ - Updated dependencies [832f86f]
551
+ - @ai-sdk/anthropic@4.0.0-beta.33
552
+
553
+ ## 5.0.0-beta.53
554
+
555
+ ### Patch Changes
556
+
557
+ - Updated dependencies [ad0b376]
558
+ - @ai-sdk/anthropic@4.0.0-beta.32
559
+
560
+ ## 5.0.0-beta.52
561
+
562
+ ### Patch Changes
563
+
564
+ - Updated dependencies [083947b]
565
+ - @ai-sdk/provider-utils@5.0.0-beta.22
566
+ - @ai-sdk/anthropic@4.0.0-beta.31
567
+ - @ai-sdk/google@4.0.0-beta.41
568
+ - @ai-sdk/openai-compatible@3.0.0-beta.27
569
+
570
+ ## 5.0.0-beta.51
571
+
572
+ ### Patch Changes
573
+
574
+ - 0d8f107: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancements
575
+ - Updated dependencies [0d8f107]
576
+ - @ai-sdk/anthropic@4.0.0-beta.30
577
+
578
+ ## 5.0.0-beta.50
579
+
580
+ ### Patch Changes
581
+
582
+ - 55f0938: chore(provider/google): update available models
583
+ - Updated dependencies [55f0938]
584
+ - @ai-sdk/google@4.0.0-beta.40
585
+
586
+ ## 5.0.0-beta.49
587
+
588
+ ### Patch Changes
589
+
590
+ - Updated dependencies [add1126]
591
+ - @ai-sdk/provider-utils@5.0.0-beta.21
592
+ - @ai-sdk/anthropic@4.0.0-beta.29
593
+ - @ai-sdk/google@4.0.0-beta.39
594
+ - @ai-sdk/openai-compatible@3.0.0-beta.26
595
+
596
+ ## 5.0.0-beta.48
597
+
598
+ ### Patch Changes
599
+
600
+ - b3976a2: Add workflow serialization support to all provider models.
601
+
602
+ **`@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.
603
+
604
+ **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.
605
+
606
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
607
+
608
+ - Updated dependencies [b3976a2]
609
+ - Updated dependencies [ff5eba1]
610
+ - @ai-sdk/provider-utils@5.0.0-beta.20
611
+ - @ai-sdk/anthropic@4.0.0-beta.28
612
+ - @ai-sdk/google@4.0.0-beta.38
613
+ - @ai-sdk/openai-compatible@3.0.0-beta.25
614
+ - @ai-sdk/provider@4.0.0-beta.12
615
+
616
+ ## 5.0.0-beta.47
617
+
618
+ ### Major Changes
619
+
620
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
621
+
622
+ ### Patch Changes
623
+
624
+ - Updated dependencies [ef992f8]
625
+ - @ai-sdk/anthropic@4.0.0-beta.27
626
+ - @ai-sdk/google@4.0.0-beta.37
627
+ - @ai-sdk/openai-compatible@3.0.0-beta.24
628
+ - @ai-sdk/provider@4.0.0-beta.11
629
+ - @ai-sdk/provider-utils@5.0.0-beta.19
630
+
631
+ ## 5.0.0-beta.46
632
+
633
+ ### Patch Changes
634
+
635
+ - Updated dependencies [9a0a618]
636
+ - @ai-sdk/google@4.0.0-beta.36
637
+
638
+ ## 5.0.0-beta.45
639
+
640
+ ### Patch Changes
641
+
642
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
643
+ - Updated dependencies [90e2d8a]
644
+ - @ai-sdk/openai-compatible@3.0.0-beta.23
645
+ - @ai-sdk/provider-utils@5.0.0-beta.18
646
+ - @ai-sdk/anthropic@4.0.0-beta.26
647
+ - @ai-sdk/google@4.0.0-beta.35
648
+
649
+ ## 5.0.0-beta.44
650
+
651
+ ### Patch Changes
652
+
653
+ - Updated dependencies [5b7e7c2]
654
+ - @ai-sdk/google@4.0.0-beta.34
655
+
656
+ ## 5.0.0-beta.43
657
+
658
+ ### Patch Changes
659
+
660
+ - Updated dependencies [09bd27b]
661
+ - @ai-sdk/anthropic@4.0.0-beta.25
662
+
663
+ ## 5.0.0-beta.42
664
+
665
+ ### Patch Changes
666
+
667
+ - Updated dependencies [3ae1786]
668
+ - @ai-sdk/provider-utils@5.0.0-beta.17
669
+ - @ai-sdk/anthropic@4.0.0-beta.24
670
+ - @ai-sdk/google@4.0.0-beta.33
671
+ - @ai-sdk/openai-compatible@3.0.0-beta.22
672
+
673
+ ## 5.0.0-beta.41
674
+
675
+ ### Patch Changes
676
+
677
+ - Updated dependencies [5036db8]
678
+ - @ai-sdk/google@4.0.0-beta.32
679
+
680
+ ## 5.0.0-beta.40
681
+
682
+ ### Patch Changes
683
+
684
+ - Updated dependencies [176466a]
685
+ - @ai-sdk/provider@4.0.0-beta.10
686
+ - @ai-sdk/anthropic@4.0.0-beta.23
687
+ - @ai-sdk/google@4.0.0-beta.31
688
+ - @ai-sdk/openai-compatible@3.0.0-beta.21
689
+ - @ai-sdk/provider-utils@5.0.0-beta.16
690
+
691
+ ## 5.0.0-beta.39
692
+
693
+ ### Patch Changes
694
+
695
+ - Updated dependencies [e311194]
696
+ - @ai-sdk/provider@4.0.0-beta.9
697
+ - @ai-sdk/anthropic@4.0.0-beta.22
698
+ - @ai-sdk/google@4.0.0-beta.30
699
+ - @ai-sdk/openai-compatible@3.0.0-beta.20
700
+ - @ai-sdk/provider-utils@5.0.0-beta.15
701
+
702
+ ## 5.0.0-beta.38
703
+
704
+ ### Patch Changes
705
+
706
+ - Updated dependencies [34bd95d]
707
+ - Updated dependencies [008271d]
708
+ - @ai-sdk/anthropic@4.0.0-beta.21
709
+ - @ai-sdk/provider@4.0.0-beta.8
710
+ - @ai-sdk/openai-compatible@3.0.0-beta.19
711
+ - @ai-sdk/google@4.0.0-beta.29
712
+ - @ai-sdk/provider-utils@5.0.0-beta.14
713
+
714
+ ## 5.0.0-beta.37
715
+
716
+ ### Patch Changes
717
+
718
+ - Updated dependencies [b0c2869]
719
+ - Updated dependencies [7e26e81]
720
+ - @ai-sdk/provider-utils@5.0.0-beta.13
721
+ - @ai-sdk/anthropic@4.0.0-beta.20
722
+ - @ai-sdk/google@4.0.0-beta.28
723
+ - @ai-sdk/openai-compatible@3.0.0-beta.18
724
+
725
+ ## 5.0.0-beta.36
726
+
727
+ ### Patch Changes
728
+
729
+ - Updated dependencies [816ff67]
730
+ - @ai-sdk/openai-compatible@3.0.0-beta.17
731
+
732
+ ## 5.0.0-beta.35
733
+
734
+ ### Patch Changes
735
+
736
+ - Updated dependencies [46d1149]
737
+ - @ai-sdk/provider-utils@5.0.0-beta.12
738
+ - @ai-sdk/google@4.0.0-beta.27
739
+ - @ai-sdk/anthropic@4.0.0-beta.19
740
+ - @ai-sdk/openai-compatible@3.0.0-beta.16
741
+
742
+ ## 5.0.0-beta.34
743
+
744
+ ### Patch Changes
745
+
746
+ - Updated dependencies [a05109d]
747
+ - @ai-sdk/google@4.0.0-beta.26
748
+
749
+ ## 5.0.0-beta.33
750
+
751
+ ### Patch Changes
752
+
753
+ - Updated dependencies [6fd51c0]
754
+ - @ai-sdk/provider-utils@5.0.0-beta.11
755
+ - @ai-sdk/provider@4.0.0-beta.7
756
+ - @ai-sdk/openai-compatible@3.0.0-beta.15
757
+ - @ai-sdk/anthropic@4.0.0-beta.18
758
+ - @ai-sdk/google@4.0.0-beta.25
759
+
760
+ ## 5.0.0-beta.32
761
+
762
+ ### Patch Changes
763
+
764
+ - Updated dependencies [55db546]
765
+ - @ai-sdk/google@4.0.0-beta.24
766
+
767
+ ## 5.0.0-beta.31
768
+
769
+ ### Patch Changes
770
+
771
+ - Updated dependencies [c29a26f]
772
+ - @ai-sdk/openai-compatible@3.0.0-beta.14
773
+ - @ai-sdk/provider-utils@5.0.0-beta.10
774
+ - @ai-sdk/anthropic@4.0.0-beta.17
775
+ - @ai-sdk/provider@4.0.0-beta.6
776
+ - @ai-sdk/google@4.0.0-beta.23
777
+
778
+ ## 5.0.0-beta.30
779
+
780
+ ### Patch Changes
781
+
782
+ - 38fc777: Add AI Gateway hint to provider READMEs
783
+ - Updated dependencies [38fc777]
784
+ - @ai-sdk/anthropic@4.0.0-beta.16
785
+ - @ai-sdk/google@4.0.0-beta.22
786
+ - @ai-sdk/openai-compatible@3.0.0-beta.13
787
+
788
+ ## 5.0.0-beta.29
789
+
790
+ ### Patch Changes
791
+
792
+ - Updated dependencies [f57c702]
793
+ - @ai-sdk/anthropic@4.0.0-beta.15
794
+
795
+ ## 5.0.0-beta.28
796
+
797
+ ### Patch Changes
798
+
799
+ - Updated dependencies [2e17091]
800
+ - @ai-sdk/provider-utils@5.0.0-beta.9
801
+ - @ai-sdk/anthropic@4.0.0-beta.14
802
+ - @ai-sdk/google@4.0.0-beta.21
803
+ - @ai-sdk/openai-compatible@3.0.0-beta.12
804
+
805
+ ## 5.0.0-beta.27
806
+
807
+ ### Patch Changes
808
+
809
+ - Updated dependencies [986c6fd]
810
+ - Updated dependencies [493295c]
811
+ - @ai-sdk/provider-utils@5.0.0-beta.8
812
+ - @ai-sdk/anthropic@4.0.0-beta.13
813
+ - @ai-sdk/google@4.0.0-beta.20
814
+ - @ai-sdk/openai-compatible@3.0.0-beta.11
815
+
816
+ ## 5.0.0-beta.26
817
+
818
+ ### Patch Changes
819
+
820
+ - Updated dependencies [01fa606]
821
+ - @ai-sdk/google@4.0.0-beta.19
822
+
823
+ ## 5.0.0-beta.25
824
+
825
+ ### Patch Changes
826
+
827
+ - a34b997: feat (provider/google-vertex): add support for maas models
828
+
829
+ ## 5.0.0-beta.24
830
+
831
+ ### Patch Changes
832
+
833
+ - Updated dependencies [9715ec7]
834
+ - @ai-sdk/google@4.0.0-beta.18
835
+
836
+ ## 5.0.0-beta.23
837
+
838
+ ### Patch Changes
839
+
840
+ - Updated dependencies [1f509d4]
841
+ - @ai-sdk/provider-utils@5.0.0-beta.7
842
+ - @ai-sdk/provider@4.0.0-beta.5
843
+ - @ai-sdk/anthropic@4.0.0-beta.12
844
+ - @ai-sdk/google@4.0.0-beta.17
845
+
846
+ ## 5.0.0-beta.22
847
+
848
+ ### Patch Changes
849
+
850
+ - Updated dependencies [0ee8aec]
851
+ - @ai-sdk/anthropic@4.0.0-beta.11
852
+
853
+ ## 5.0.0-beta.21
854
+
855
+ ### Patch Changes
856
+
857
+ - Updated dependencies [6190649]
858
+ - @ai-sdk/google@4.0.0-beta.16
859
+
860
+ ## 5.0.0-beta.20
861
+
862
+ ### Patch Changes
863
+
864
+ - Updated dependencies [18c1970]
865
+ - @ai-sdk/google@4.0.0-beta.15
866
+
867
+ ## 5.0.0-beta.19
868
+
869
+ ### Patch Changes
870
+
871
+ - Updated dependencies [3887c70]
872
+ - @ai-sdk/provider-utils@5.0.0-beta.6
873
+ - @ai-sdk/anthropic@4.0.0-beta.10
874
+ - @ai-sdk/provider@4.0.0-beta.4
875
+ - @ai-sdk/google@4.0.0-beta.14
876
+
877
+ ## 5.0.0-beta.18
878
+
879
+ ### Patch Changes
880
+
881
+ - Updated dependencies [776b617]
882
+ - @ai-sdk/provider-utils@5.0.0-beta.5
883
+ - @ai-sdk/provider@4.0.0-beta.3
884
+ - @ai-sdk/anthropic@4.0.0-beta.9
885
+ - @ai-sdk/google@4.0.0-beta.13
886
+
887
+ ## 5.0.0-beta.17
888
+
889
+ ### Patch Changes
890
+
891
+ - Updated dependencies [61753c3]
892
+ - @ai-sdk/provider-utils@5.0.0-beta.4
893
+ - @ai-sdk/anthropic@4.0.0-beta.8
894
+ - @ai-sdk/google@4.0.0-beta.12
895
+
896
+ ## 5.0.0-beta.16
897
+
898
+ ### Patch Changes
899
+
900
+ - ebb02ea: feat(google-vertex): add the anthropic tool search tools
901
+
902
+ ## 5.0.0-beta.15
903
+
904
+ ### Patch Changes
905
+
906
+ - Updated dependencies [f7d4f01]
907
+ - @ai-sdk/provider-utils@5.0.0-beta.3
908
+ - @ai-sdk/provider@4.0.0-beta.2
909
+ - @ai-sdk/google@4.0.0-beta.11
910
+ - @ai-sdk/anthropic@4.0.0-beta.7
911
+
912
+ ## 5.0.0-beta.14
913
+
914
+ ### Patch Changes
915
+
916
+ - Updated dependencies [21d1ee3]
917
+ - @ai-sdk/anthropic@4.0.0-beta.6
918
+
919
+ ## 5.0.0-beta.13
920
+
921
+ ### Patch Changes
922
+
923
+ - Updated dependencies [5c2a5a2]
924
+ - @ai-sdk/provider@4.0.0-beta.1
925
+ - @ai-sdk/anthropic@4.0.0-beta.5
926
+ - @ai-sdk/google@4.0.0-beta.10
927
+ - @ai-sdk/provider-utils@5.0.0-beta.2
928
+
929
+ ## 5.0.0-beta.12
930
+
931
+ ### Patch Changes
932
+
933
+ - f05a40d: fix(vertex): throw warning when strict: true for vertexAnthropic
934
+ - Updated dependencies [f05a40d]
935
+ - @ai-sdk/anthropic@4.0.0-beta.4
936
+
3
937
  ## 5.0.0-beta.11
4
938
 
5
939
  ### Patch Changes
@@ -740,13 +1674,13 @@
740
1674
  Before
741
1675
 
742
1676
  ```ts
743
- model.textEmbeddingModel('my-model-id');
1677
+ model.textEmbeddingModel("my-model-id");
744
1678
  ```
745
1679
 
746
1680
  After
747
1681
 
748
1682
  ```ts
749
- model.embeddingModel('my-model-id');
1683
+ model.embeddingModel("my-model-id");
750
1684
  ```
751
1685
 
752
1686
  - 32a6c13: Add Google Maps grounding tool support for location-aware Gemini responses
@@ -1230,13 +2164,13 @@
1230
2164
  Before
1231
2165
 
1232
2166
  ```ts
1233
- model.textEmbeddingModel('my-model-id');
2167
+ model.textEmbeddingModel("my-model-id");
1234
2168
  ```
1235
2169
 
1236
2170
  After
1237
2171
 
1238
2172
  ```ts
1239
- model.embeddingModel('my-model-id');
2173
+ model.embeddingModel("my-model-id");
1240
2174
  ```
1241
2175
 
1242
2176
  - Updated dependencies [8d9e8ad]
@@ -2191,7 +3125,7 @@
2191
3125
 
2192
3126
  ```js
2193
3127
  await generateImage({
2194
- model: luma.image('photon-flash-1', {
3128
+ model: luma.image("photon-flash-1", {
2195
3129
  maxImagesPerCall: 5,
2196
3130
  pollIntervalMillis: 500,
2197
3131
  }),
@@ -2204,7 +3138,7 @@
2204
3138
 
2205
3139
  ```js
2206
3140
  await generateImage({
2207
- model: luma.image('photon-flash-1'),
3141
+ model: luma.image("photon-flash-1"),
2208
3142
  prompt,
2209
3143
  n: 10,
2210
3144
  maxImagesPerCall: 5,
@@ -2594,7 +3528,7 @@
2594
3528
 
2595
3529
  ```js
2596
3530
  await generateImage({
2597
- model: luma.image('photon-flash-1', {
3531
+ model: luma.image("photon-flash-1", {
2598
3532
  maxImagesPerCall: 5,
2599
3533
  pollIntervalMillis: 500,
2600
3534
  }),
@@ -2607,7 +3541,7 @@
2607
3541
 
2608
3542
  ```js
2609
3543
  await generateImage({
2610
- model: luma.image('photon-flash-1'),
3544
+ model: luma.image("photon-flash-1"),
2611
3545
  prompt,
2612
3546
  n: 10,
2613
3547
  maxImagesPerCall: 5,