@ai-sdk/google-vertex 5.0.0-beta.8 → 5.0.0-canary.100

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