@ai-sdk/google-vertex 5.0.0-beta.9 → 5.0.0-canary.101

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