@ai-sdk/google-vertex 5.0.0-beta.10 → 5.0.0-beta.109

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