@ai-sdk/google-vertex 5.0.0-beta.1 → 5.0.0-beta.108

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