@depup/ai-sdk__google 3.0.43-depup.0

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 (48) hide show
  1. package/CHANGELOG.md +2531 -0
  2. package/LICENSE +13 -0
  3. package/README.md +25 -0
  4. package/changes.json +5 -0
  5. package/dist/index.d.mts +367 -0
  6. package/dist/index.d.ts +367 -0
  7. package/dist/index.js +2404 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/index.mjs +2454 -0
  10. package/dist/index.mjs.map +1 -0
  11. package/dist/internal/index.d.mts +283 -0
  12. package/dist/internal/index.d.ts +283 -0
  13. package/dist/internal/index.js +1670 -0
  14. package/dist/internal/index.js.map +1 -0
  15. package/dist/internal/index.mjs +1678 -0
  16. package/dist/internal/index.mjs.map +1 -0
  17. package/docs/15-google-generative-ai.mdx +1298 -0
  18. package/internal.d.ts +1 -0
  19. package/package.json +96 -0
  20. package/src/convert-google-generative-ai-usage.ts +51 -0
  21. package/src/convert-json-schema-to-openapi-schema.ts +158 -0
  22. package/src/convert-to-google-generative-ai-messages.ts +236 -0
  23. package/src/get-model-path.ts +3 -0
  24. package/src/google-error.ts +26 -0
  25. package/src/google-generative-ai-embedding-model.ts +159 -0
  26. package/src/google-generative-ai-embedding-options.ts +51 -0
  27. package/src/google-generative-ai-image-model.ts +359 -0
  28. package/src/google-generative-ai-image-settings.ts +17 -0
  29. package/src/google-generative-ai-language-model.ts +1056 -0
  30. package/src/google-generative-ai-options.ts +198 -0
  31. package/src/google-generative-ai-prompt.ts +38 -0
  32. package/src/google-generative-ai-video-model.ts +374 -0
  33. package/src/google-generative-ai-video-settings.ts +8 -0
  34. package/src/google-prepare-tools.ts +254 -0
  35. package/src/google-provider.ts +227 -0
  36. package/src/google-supported-file-url.ts +20 -0
  37. package/src/google-tools.ts +71 -0
  38. package/src/index.ts +29 -0
  39. package/src/internal/index.ts +3 -0
  40. package/src/map-google-generative-ai-finish-reason.ts +29 -0
  41. package/src/tool/code-execution.ts +35 -0
  42. package/src/tool/enterprise-web-search.ts +18 -0
  43. package/src/tool/file-search.ts +51 -0
  44. package/src/tool/google-maps.ts +14 -0
  45. package/src/tool/google-search.ts +43 -0
  46. package/src/tool/url-context.ts +16 -0
  47. package/src/tool/vertex-rag-store.ts +31 -0
  48. package/src/version.ts +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,2531 @@
1
+ # @ai-sdk/google
2
+
3
+ ## 3.0.43
4
+
5
+ ### Patch Changes
6
+
7
+ - 7ba09a4: Fix gateway failover losing thoughtSignature when failing over from Vertex to Google AI Studio. The Google provider now falls back to checking the vertex namespace for thoughtSignature, matching the existing Vertex-to-Google fallback behavior.
8
+
9
+ ## 3.0.42
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [ad4cfc2]
14
+ - @ai-sdk/provider-utils@4.0.19
15
+
16
+ ## 3.0.41
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [824b295]
21
+ - @ai-sdk/provider-utils@4.0.18
22
+
23
+ ## 3.0.40
24
+
25
+ ### Patch Changes
26
+
27
+ - 89d8b45: fix(google): make urlMetadata optional in urlContextMetadata schema
28
+
29
+ ## 3.0.39
30
+
31
+ ### Patch Changes
32
+
33
+ - 2565e70: feat(google): add support for image search, replace obsolete google_search_retrieval implementation
34
+
35
+ ## 3.0.38
36
+
37
+ ### Patch Changes
38
+
39
+ - 2291047: fix(ai): fix missing support for image thought signatures (e.g. for Gemini image models)
40
+
41
+ ## 3.0.37
42
+
43
+ ### Patch Changes
44
+
45
+ - 10bec50: feat(provider/google): add `gemini-3.1-flash-lite-preview`
46
+
47
+ ## 3.0.36
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [08336f1]
52
+ - @ai-sdk/provider-utils@4.0.17
53
+
54
+ ## 3.0.35
55
+
56
+ ### Patch Changes
57
+
58
+ - 64a8fae: chore: remove obsolete model IDs for Anthropic, Google, OpenAI, xAI
59
+
60
+ ## 3.0.34
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [58bc42d]
65
+ - @ai-sdk/provider-utils@4.0.16
66
+
67
+ ## 3.0.33
68
+
69
+ ### Patch Changes
70
+
71
+ - 1ece97a: feat(provider/google): add support for new Google image model aspect ratios and sizes
72
+
73
+ ## 3.0.32
74
+
75
+ ### Patch Changes
76
+
77
+ - 45f0a7f: feat(provider/google): add support for gemini-3.1-flash-image-preview
78
+
79
+ ## 3.0.31
80
+
81
+ ### Patch Changes
82
+
83
+ - 2fa3ca8: Added missing model IDs to GoogleGenerativeAIModelId and GoogleGenerativeAIVideoModelId types for better autocomplete support.
84
+
85
+ ## 3.0.30
86
+
87
+ ### Patch Changes
88
+
89
+ - 765b013: feat(provider/google): add support for `gemini-3.1-pro-preview`
90
+
91
+ ## 3.0.29
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies [4024a3a]
96
+ - @ai-sdk/provider-utils@4.0.15
97
+
98
+ ## 3.0.28
99
+
100
+ ### Patch Changes
101
+
102
+ - 5a307f5: feat(provider/google-vertex): allow using Gemini image models with `generateImage`
103
+
104
+ ## 3.0.27
105
+
106
+ ### Patch Changes
107
+
108
+ - 051361b: fix(vertex): add fallback for providerOptions keyname
109
+
110
+ ## 3.0.26
111
+
112
+ ### Patch Changes
113
+
114
+ - 4c27179: feat(google): allow using Gemini image models with `generateImage`
115
+
116
+ ## 3.0.25
117
+
118
+ ### Patch Changes
119
+
120
+ - 99fbed8: feat: normalize provider specific model options type names and ensure they are exported
121
+
122
+ ## 3.0.24
123
+
124
+ ### Patch Changes
125
+
126
+ - 3b3e32f: fix(google): handle thoughtSignature on empty-text parts in doGenerate and doStream
127
+
128
+ ## 3.0.23
129
+
130
+ ### Patch Changes
131
+
132
+ - ba98c56: fix(google): make `codeExecutionResult.output` optional in response schema
133
+
134
+ Gemini 3 Flash omits the `output` field in `codeExecutionResult` when code execution produces no text output (e.g., only saves files). The Zod response schema now accepts a missing `output` field and defaults it to an empty string.
135
+
136
+ ## 3.0.22
137
+
138
+ ### Patch Changes
139
+
140
+ - 7168375: feat (ai, provider): default global provider video model resolution
141
+ - Updated dependencies [7168375]
142
+ - @ai-sdk/provider@3.0.8
143
+ - @ai-sdk/provider-utils@4.0.14
144
+
145
+ ## 3.0.21
146
+
147
+ ### Patch Changes
148
+
149
+ - ae30443: fix(google): remove shut down `gemini-2.5-flash-image-preview`
150
+
151
+ ## 3.0.20
152
+
153
+ ### Patch Changes
154
+
155
+ - 53f6731: feat (ai, provider): experimental generate video support
156
+ - Updated dependencies [53f6731]
157
+ - @ai-sdk/provider@3.0.7
158
+ - @ai-sdk/provider-utils@4.0.13
159
+
160
+ ## 3.0.19
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [96936e5]
165
+ - @ai-sdk/provider-utils@4.0.12
166
+
167
+ ## 3.0.18
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [2810850]
172
+ - @ai-sdk/provider-utils@4.0.11
173
+ - @ai-sdk/provider@3.0.6
174
+
175
+ ## 3.0.17
176
+
177
+ ### Patch Changes
178
+
179
+ - 1524271: chore: add skill information to README files
180
+
181
+ ## 3.0.16
182
+
183
+ ### Patch Changes
184
+
185
+ - 97b3ebb: fix (provider/google): make `segment` optional in `groundingSupports` schema
186
+
187
+ The Google Generative AI API sometimes returns grounding supports without a `segment` field. This change makes the `segment` field optional to handle these responses correctly.
188
+
189
+ ## 3.0.15
190
+
191
+ ### Patch Changes
192
+
193
+ - 2c70b90: chore: update provider docs
194
+
195
+ ## 3.0.14
196
+
197
+ ### Patch Changes
198
+
199
+ - Updated dependencies [462ad00]
200
+ - @ai-sdk/provider-utils@4.0.10
201
+
202
+ ## 3.0.13
203
+
204
+ ### Patch Changes
205
+
206
+ - 4de5a1d: chore: excluded tests from src folder in npm package
207
+ - Updated dependencies [4de5a1d]
208
+ - @ai-sdk/provider@3.0.5
209
+ - @ai-sdk/provider-utils@4.0.9
210
+
211
+ ## 3.0.12
212
+
213
+ ### Patch Changes
214
+
215
+ - 2b8369d: chore: add docs to package dist
216
+
217
+ ## 3.0.11
218
+
219
+ ### Patch Changes
220
+
221
+ - 8dc54db: chore: add src folders to package bundle
222
+
223
+ ## 3.0.10
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [5c090e7]
228
+ - @ai-sdk/provider@3.0.4
229
+ - @ai-sdk/provider-utils@4.0.8
230
+
231
+ ## 3.0.9
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [46f46e4]
236
+ - @ai-sdk/provider-utils@4.0.7
237
+
238
+ ## 3.0.8
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [1b11dcb]
243
+ - @ai-sdk/provider-utils@4.0.6
244
+ - @ai-sdk/provider@3.0.3
245
+
246
+ ## 3.0.7
247
+
248
+ ### Patch Changes
249
+
250
+ - Updated dependencies [34d1c8a]
251
+ - @ai-sdk/provider-utils@4.0.5
252
+
253
+ ## 3.0.6
254
+
255
+ ### Patch Changes
256
+
257
+ - 2043612: fix(google): parse structured output when using google provider tools
258
+
259
+ ## 3.0.5
260
+
261
+ ### Patch Changes
262
+
263
+ - 3be4d81: Add file support for Gemini 3 models
264
+
265
+ ## 3.0.4
266
+
267
+ ### Patch Changes
268
+
269
+ - Updated dependencies [d937c8f]
270
+ - @ai-sdk/provider@3.0.2
271
+ - @ai-sdk/provider-utils@4.0.4
272
+
273
+ ## 3.0.3
274
+
275
+ ### Patch Changes
276
+
277
+ - Updated dependencies [0b429d4]
278
+ - @ai-sdk/provider-utils@4.0.3
279
+
280
+ ## 3.0.2
281
+
282
+ ### Patch Changes
283
+
284
+ - 863d34f: fix: trigger release to update `@latest`
285
+ - Updated dependencies [863d34f]
286
+ - @ai-sdk/provider@3.0.1
287
+ - @ai-sdk/provider-utils@4.0.2
288
+
289
+ ## 3.0.1
290
+
291
+ ### Patch Changes
292
+
293
+ - Updated dependencies [29264a3]
294
+ - @ai-sdk/provider-utils@4.0.1
295
+
296
+ ## 3.0.0
297
+
298
+ ### Major Changes
299
+
300
+ - dee8b05: ai SDK 6 beta
301
+
302
+ ### Minor Changes
303
+
304
+ - 78928cb: release: start 5.1 beta
305
+
306
+ ### Patch Changes
307
+
308
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
309
+ - 0adc679: feat(provider): shared spec v3
310
+ - 9be07c8: feat(google): `thinking_level` option for Gemini 3
311
+ - fd788ce: fix(provider/google): preserve nested empty object schemas and descriptions in tool parameters
312
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
313
+
314
+ Before
315
+
316
+ ```ts
317
+ model.textEmbeddingModel('my-model-id');
318
+ ```
319
+
320
+ After
321
+
322
+ ```ts
323
+ model.embeddingModel('my-model-id');
324
+ ```
325
+
326
+ - 2625a04: feat(openai); update spec for mcp approval
327
+ - 7728ac5: The mediaResolution option has been added and is now passed to the Google API.
328
+ - 9a728c8: support latest gemini model id
329
+ - 32a6c13: Add Google Maps grounding tool support for location-aware Gemini responses
330
+ - 95f65c2: chore: use import \* from zod/v4
331
+ - e300a3b: Fixed Zod validation error when using `google.tools.fileSearch()`. The Google File Search API returns `fileSearchStore` instead of `uri` in `retrievedContext`. Updated `extractSources()` function to handle both the old format (Google Search with `uri`) and new format (File Search with `fileSearchStore`), maintaining backward compatibility while preventing validation errors. Also fixed title handling to use `undefined` for URL sources and `'Unknown Document'` for document sources.
332
+ - 218bba1: fix(google): use dynamic providerOptionsName when retrieving thoughtSignature in convertToGoogleGenerativeAIMessages
333
+
334
+ When using @ai-sdk/google-vertex provider with Gemini thinking models, multi-step tool calls would fail with "function call is missing a thought_signature" error. This was because thoughtSignature was stored under providerOptions.vertex but retrieved using hardcoded providerOptions.google. This fix passes providerOptionsName to convertToGoogleGenerativeAIMessages and uses it dynamically.
335
+
336
+ - 954c356: feat(openai): allow custom names for provider-defined tools
337
+ - 0b92881: Add Google Vertex RAG Engine grounding provider tool
338
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
339
+ - 0c4822d: feat: `EmbeddingModelV3`
340
+ - f8c981f: Fix adding google search along with url context in vertex ai
341
+ - 6078060: fix(provider/google): remove includethoughts warning
342
+ - bb28cac: Change streamText loop to merge file part processing into main parts loop
343
+ - fff8d59: feat(provider/google): Add support for the imageSize provider option
344
+ - 1742445: Support for custom provider name in google and anthropic providers
345
+ - e8109d3: feat: tool execution approval
346
+ - ed329cb: feat: `Provider-V3`
347
+ - 3bd2689: feat: extended token usage
348
+ - 1cad0ab: feat: add provider version to user-agent header
349
+ - 9b17031: Improve error message when mixing function tools with provider-defined tools to clarify fallback behavior and list ignored function tools
350
+ - 8dac895: feat: `LanguageModelV3`
351
+ - ee50cc5: fix(provider/google): lazy schema loading
352
+
353
+ import time improved by 12.5% (22.3ms ➡️ 19.5ms)
354
+
355
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
356
+ - 0ad470b: feat(provider/google): add enterpriseWebSearch tool
357
+ - db913bd: fix(google): add thought signature to gemini 3 pro image parts
358
+ - 9061dc0: feat: image editing
359
+ - 8370068: fix(provider/google): preserve thoughtSignature through tool execution
360
+ - ee8cd23: fix(vertex): allow 'vertex' as a key for providerOptions
361
+ - 7dea60e: add promptFeedback outputs
362
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
363
+ - 8ee8edc: Prepare search tool for gemini-3-pro-preview
364
+ - 2825757: Add Google File search tool
365
+ - 4616b86: chore: update zod peer depenedency version
366
+ - 33d9327: add `gemini-3-pro-preview` and `gemini-3-pro-image-preview` model IDs
367
+ - 0cfae4c: feat(vertex): support 'trafficType' in provider usageMetadata
368
+ - 09ba2dd: Support `imageConfig.aspectRatio` configuration for Gemini models
369
+ - 32a8c82: feat: add gemini 3 pro
370
+ - 166b6d7: fix(provider/google): preserve nested empty object schemas in tool parameters to fix "property is not defined" validation errors when using required properties with empty object types
371
+ - 522f6b8: feat: `ImageModelV3`
372
+ - 599a97f: fix: update gemini 3 model id
373
+ - 49e2b6a: fix(google): return request as object
374
+ - 3794514: feat: flexible tool output content support
375
+ - cbf52cd: feat: expose raw finish reason
376
+ - 870297d: feat(google): gemini-3-flash
377
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
378
+ - c8003fb: fix(@ai-sdk/google): Make title field optional in grounding metadata schema
379
+ - 4d2e88e: fix(google,google-vertex): update known model IDs
380
+ - e833473: chore (provider/google): Add preview modelIds for gemini 2.5 flash and lite
381
+ - Updated dependencies
382
+ - @ai-sdk/provider@3.0.0
383
+ - @ai-sdk/provider-utils@4.0.0
384
+
385
+ ## 3.0.0-beta.90
386
+
387
+ ### Patch Changes
388
+
389
+ - 218bba1: fix(google): use dynamic providerOptionsName when retrieving thoughtSignature in convertToGoogleGenerativeAIMessages
390
+
391
+ When using @ai-sdk/google-vertex provider with Gemini thinking models, multi-step tool calls would fail with "function call is missing a thought_signature" error. This was because thoughtSignature was stored under providerOptions.vertex but retrieved using hardcoded providerOptions.google. This fix passes providerOptionsName to convertToGoogleGenerativeAIMessages and uses it dynamically.
392
+
393
+ ## 3.0.0-beta.89
394
+
395
+ ### Patch Changes
396
+
397
+ - Updated dependencies [475189e]
398
+ - @ai-sdk/provider@3.0.0-beta.32
399
+ - @ai-sdk/provider-utils@4.0.0-beta.59
400
+
401
+ ## 3.0.0-beta.88
402
+
403
+ ### Patch Changes
404
+
405
+ - 2625a04: feat(openai); update spec for mcp approval
406
+ - Updated dependencies [2625a04]
407
+ - @ai-sdk/provider@3.0.0-beta.31
408
+ - @ai-sdk/provider-utils@4.0.0-beta.58
409
+
410
+ ## 3.0.0-beta.87
411
+
412
+ ### Patch Changes
413
+
414
+ - cbf52cd: feat: expose raw finish reason
415
+ - Updated dependencies [cbf52cd]
416
+ - @ai-sdk/provider@3.0.0-beta.30
417
+ - @ai-sdk/provider-utils@4.0.0-beta.57
418
+
419
+ ## 3.0.0-beta.86
420
+
421
+ ### Patch Changes
422
+
423
+ - Updated dependencies [9549c9e]
424
+ - @ai-sdk/provider@3.0.0-beta.29
425
+ - @ai-sdk/provider-utils@4.0.0-beta.56
426
+
427
+ ## 3.0.0-beta.85
428
+
429
+ ### Patch Changes
430
+
431
+ - Updated dependencies [50b70d6]
432
+ - @ai-sdk/provider-utils@4.0.0-beta.55
433
+
434
+ ## 3.0.0-beta.84
435
+
436
+ ### Patch Changes
437
+
438
+ - fd788ce: fix(provider/google): preserve nested empty object schemas and descriptions in tool parameters
439
+
440
+ ## 3.0.0-beta.83
441
+
442
+ ### Patch Changes
443
+
444
+ - 166b6d7: fix(provider/google): preserve nested empty object schemas in tool parameters to fix "property is not defined" validation errors when using required properties with empty object types
445
+
446
+ ## 3.0.0-beta.82
447
+
448
+ ### Patch Changes
449
+
450
+ - 9061dc0: feat: image editing
451
+ - Updated dependencies [9061dc0]
452
+ - @ai-sdk/provider-utils@4.0.0-beta.54
453
+ - @ai-sdk/provider@3.0.0-beta.28
454
+
455
+ ## 3.0.0-beta.81
456
+
457
+ ### Patch Changes
458
+
459
+ - 0ad470b: feat(provider/google): add enterpriseWebSearch tool
460
+
461
+ ## 3.0.0-beta.80
462
+
463
+ ### Patch Changes
464
+
465
+ - 870297d: feat(google): gemini-3-flash
466
+
467
+ ## 3.0.0-beta.79
468
+
469
+ ### Patch Changes
470
+
471
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
472
+ - Updated dependencies [366f50b]
473
+ - @ai-sdk/provider@3.0.0-beta.27
474
+ - @ai-sdk/provider-utils@4.0.0-beta.53
475
+
476
+ ## 3.0.0-beta.78
477
+
478
+ ### Patch Changes
479
+
480
+ - Updated dependencies [763d04a]
481
+ - @ai-sdk/provider-utils@4.0.0-beta.52
482
+
483
+ ## 3.0.0-beta.77
484
+
485
+ ### Patch Changes
486
+
487
+ - 32a6c13: Add Google Maps grounding tool support for location-aware Gemini responses
488
+
489
+ ## 3.0.0-beta.76
490
+
491
+ ### Patch Changes
492
+
493
+ - Updated dependencies [c1efac4]
494
+ - @ai-sdk/provider-utils@4.0.0-beta.51
495
+
496
+ ## 3.0.0-beta.75
497
+
498
+ ### Patch Changes
499
+
500
+ - Updated dependencies [32223c8]
501
+ - @ai-sdk/provider-utils@4.0.0-beta.50
502
+
503
+ ## 3.0.0-beta.74
504
+
505
+ ### Patch Changes
506
+
507
+ - Updated dependencies [83e5744]
508
+ - @ai-sdk/provider-utils@4.0.0-beta.49
509
+
510
+ ## 3.0.0-beta.73
511
+
512
+ ### Patch Changes
513
+
514
+ - Updated dependencies [960ec8f]
515
+ - @ai-sdk/provider-utils@4.0.0-beta.48
516
+
517
+ ## 3.0.0-beta.72
518
+
519
+ ### Patch Changes
520
+
521
+ - ee8cd23: fix(vertex): allow 'vertex' as a key for providerOptions
522
+
523
+ ## 3.0.0-beta.71
524
+
525
+ ### Patch Changes
526
+
527
+ - 49e2b6a: fix(google): return request as object
528
+
529
+ ## 3.0.0-beta.70
530
+
531
+ ### Patch Changes
532
+
533
+ - Updated dependencies [e9e157f]
534
+ - @ai-sdk/provider-utils@4.0.0-beta.47
535
+
536
+ ## 3.0.0-beta.69
537
+
538
+ ### Patch Changes
539
+
540
+ - Updated dependencies [81e29ab]
541
+ - @ai-sdk/provider-utils@4.0.0-beta.46
542
+
543
+ ## 3.0.0-beta.68
544
+
545
+ ### Patch Changes
546
+
547
+ - 3bd2689: feat: extended token usage
548
+ - Updated dependencies [3bd2689]
549
+ - @ai-sdk/provider@3.0.0-beta.26
550
+ - @ai-sdk/provider-utils@4.0.0-beta.45
551
+
552
+ ## 3.0.0-beta.67
553
+
554
+ ### Patch Changes
555
+
556
+ - 4d2e88e: fix(google,google-vertex): update known model IDs
557
+
558
+ ## 3.0.0-beta.66
559
+
560
+ ### Patch Changes
561
+
562
+ - Updated dependencies [53f3368]
563
+ - @ai-sdk/provider@3.0.0-beta.25
564
+ - @ai-sdk/provider-utils@4.0.0-beta.44
565
+
566
+ ## 3.0.0-beta.65
567
+
568
+ ### Patch Changes
569
+
570
+ - Updated dependencies [dce03c4]
571
+ - @ai-sdk/provider-utils@4.0.0-beta.43
572
+ - @ai-sdk/provider@3.0.0-beta.24
573
+
574
+ ## 3.0.0-beta.64
575
+
576
+ ### Patch Changes
577
+
578
+ - Updated dependencies [3ed5519]
579
+ - @ai-sdk/provider-utils@4.0.0-beta.42
580
+
581
+ ## 3.0.0-beta.63
582
+
583
+ ### Patch Changes
584
+
585
+ - Updated dependencies [1bd7d32]
586
+ - @ai-sdk/provider-utils@4.0.0-beta.41
587
+ - @ai-sdk/provider@3.0.0-beta.23
588
+
589
+ ## 3.0.0-beta.62
590
+
591
+ ### Patch Changes
592
+
593
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
594
+ - Updated dependencies [544d4e8]
595
+ - @ai-sdk/provider-utils@4.0.0-beta.40
596
+ - @ai-sdk/provider@3.0.0-beta.22
597
+
598
+ ## 3.0.0-beta.61
599
+
600
+ ### Patch Changes
601
+
602
+ - 954c356: feat(openai): allow custom names for provider-defined tools
603
+ - Updated dependencies [954c356]
604
+ - @ai-sdk/provider-utils@4.0.0-beta.39
605
+ - @ai-sdk/provider@3.0.0-beta.21
606
+
607
+ ## 3.0.0-beta.60
608
+
609
+ ### Patch Changes
610
+
611
+ - Updated dependencies [03849b0]
612
+ - @ai-sdk/provider-utils@4.0.0-beta.38
613
+
614
+ ## 3.0.0-beta.59
615
+
616
+ ### Patch Changes
617
+
618
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
619
+ - Updated dependencies [457318b]
620
+ - @ai-sdk/provider@3.0.0-beta.20
621
+ - @ai-sdk/provider-utils@4.0.0-beta.37
622
+
623
+ ## 3.0.0-beta.58
624
+
625
+ ### Patch Changes
626
+
627
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
628
+
629
+ Before
630
+
631
+ ```ts
632
+ model.textEmbeddingModel('my-model-id');
633
+ ```
634
+
635
+ After
636
+
637
+ ```ts
638
+ model.embeddingModel('my-model-id');
639
+ ```
640
+
641
+ - Updated dependencies [8d9e8ad]
642
+ - @ai-sdk/provider@3.0.0-beta.19
643
+ - @ai-sdk/provider-utils@4.0.0-beta.36
644
+
645
+ ## 3.0.0-beta.57
646
+
647
+ ### Patch Changes
648
+
649
+ - Updated dependencies [10d819b]
650
+ - @ai-sdk/provider@3.0.0-beta.18
651
+ - @ai-sdk/provider-utils@4.0.0-beta.35
652
+
653
+ ## 3.0.0-beta.56
654
+
655
+ ### Patch Changes
656
+
657
+ - e300a3b: Fixed Zod validation error when using `google.tools.fileSearch()`. The Google File Search API returns `fileSearchStore` instead of `uri` in `retrievedContext`. Updated `extractSources()` function to handle both the old format (Google Search with `uri`) and new format (File Search with `fileSearchStore`), maintaining backward compatibility while preventing validation errors. Also fixed title handling to use `undefined` for URL sources and `'Unknown Document'` for document sources.
658
+
659
+ ## 3.0.0-beta.55
660
+
661
+ ### Patch Changes
662
+
663
+ - db913bd: fix(google): add thought signature to gemini 3 pro image parts
664
+ - Updated dependencies [db913bd]
665
+ - @ai-sdk/provider@3.0.0-beta.17
666
+ - @ai-sdk/provider-utils@4.0.0-beta.34
667
+
668
+ ## 3.0.0-beta.54
669
+
670
+ ### Patch Changes
671
+
672
+ - bb28cac: Change streamText loop to merge file part processing into main parts loop
673
+
674
+ ## 3.0.0-beta.53
675
+
676
+ ### Patch Changes
677
+
678
+ - 33d9327: add `gemini-3-pro-preview` and `gemini-3-pro-image-preview` model IDs
679
+
680
+ ## 3.0.0-beta.52
681
+
682
+ ### Patch Changes
683
+
684
+ - fff8d59: feat(provider/google): Add support for the imageSize provider option
685
+
686
+ ## 3.0.0-beta.51
687
+
688
+ ### Patch Changes
689
+
690
+ - 8370068: fix(provider/google): preserve thoughtSignature through tool execution
691
+
692
+ ## 3.0.0-beta.50
693
+
694
+ ### Patch Changes
695
+
696
+ - 9be07c8: feat(google): `thinking_level` option for Gemini 3
697
+
698
+ ## 3.0.0-beta.49
699
+
700
+ ### Patch Changes
701
+
702
+ - 8ee8edc: Prepare search tool for gemini-3-pro-preview
703
+
704
+ ## 3.0.0-beta.48
705
+
706
+ ### Patch Changes
707
+
708
+ - 6078060: fix(provider/google): remove includethoughts warning
709
+
710
+ ## 3.0.0-beta.47
711
+
712
+ ### Patch Changes
713
+
714
+ - 32a8c82: feat: add gemini 3 pro
715
+ - 599a97f: fix: update gemini 3 model id
716
+
717
+ ## 3.0.0-beta.46
718
+
719
+ ### Patch Changes
720
+
721
+ - 0b92881: Add Google Vertex RAG Engine grounding provider tool
722
+
723
+ ## 3.0.0-beta.45
724
+
725
+ ### Patch Changes
726
+
727
+ - 9b17031: Improve error message when mixing function tools with provider-defined tools to clarify fallback behavior and list ignored function tools
728
+
729
+ ## 3.0.0-beta.44
730
+
731
+ ### Patch Changes
732
+
733
+ - 0cfae4c: feat(vertex): support 'trafficType' in provider usageMetadata
734
+
735
+ ## 3.0.0-beta.43
736
+
737
+ ### Patch Changes
738
+
739
+ - Updated dependencies [b681d7d]
740
+ - @ai-sdk/provider@3.0.0-beta.16
741
+ - @ai-sdk/provider-utils@4.0.0-beta.33
742
+
743
+ ## 3.0.0-beta.42
744
+
745
+ ### Patch Changes
746
+
747
+ - Updated dependencies [32d8dbb]
748
+ - @ai-sdk/provider-utils@4.0.0-beta.32
749
+
750
+ ## 3.0.0-beta.41
751
+
752
+ ### Patch Changes
753
+
754
+ - 1742445: Support for custom provider name in google and anthropic providers
755
+
756
+ ## 3.0.0-beta.40
757
+
758
+ ### Patch Changes
759
+
760
+ - 2825757: Add Google File search tool
761
+
762
+ ## 3.0.0-beta.39
763
+
764
+ ### Patch Changes
765
+
766
+ - Updated dependencies [bb36798]
767
+ - @ai-sdk/provider@3.0.0-beta.15
768
+ - @ai-sdk/provider-utils@4.0.0-beta.31
769
+
770
+ ## 3.0.0-beta.38
771
+
772
+ ### Patch Changes
773
+
774
+ - Updated dependencies [4f16c37]
775
+ - @ai-sdk/provider-utils@4.0.0-beta.30
776
+
777
+ ## 3.0.0-beta.37
778
+
779
+ ### Patch Changes
780
+
781
+ - Updated dependencies [af3780b]
782
+ - @ai-sdk/provider@3.0.0-beta.14
783
+ - @ai-sdk/provider-utils@4.0.0-beta.29
784
+
785
+ ## 3.0.0-beta.36
786
+
787
+ ### Patch Changes
788
+
789
+ - c8003fb: fix(@ai-sdk/google): Make title field optional in grounding metadata schema
790
+
791
+ ## 3.0.0-beta.35
792
+
793
+ ### Patch Changes
794
+
795
+ - Updated dependencies [016b111]
796
+ - @ai-sdk/provider-utils@4.0.0-beta.28
797
+
798
+ ## 3.0.0-beta.34
799
+
800
+ ### Patch Changes
801
+
802
+ - Updated dependencies [37c58a0]
803
+ - @ai-sdk/provider@3.0.0-beta.13
804
+ - @ai-sdk/provider-utils@4.0.0-beta.27
805
+
806
+ ## 3.0.0-beta.33
807
+
808
+ ### Patch Changes
809
+
810
+ - Updated dependencies [d1bdadb]
811
+ - @ai-sdk/provider@3.0.0-beta.12
812
+ - @ai-sdk/provider-utils@4.0.0-beta.26
813
+
814
+ ## 3.0.0-beta.32
815
+
816
+ ### Patch Changes
817
+
818
+ - Updated dependencies [4c44a5b]
819
+ - @ai-sdk/provider@3.0.0-beta.11
820
+ - @ai-sdk/provider-utils@4.0.0-beta.25
821
+
822
+ ## 3.0.0-beta.31
823
+
824
+ ### Patch Changes
825
+
826
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
827
+ - Updated dependencies [0c3b58b]
828
+ - @ai-sdk/provider@3.0.0-beta.10
829
+ - @ai-sdk/provider-utils@4.0.0-beta.24
830
+
831
+ ## 3.0.0-beta.30
832
+
833
+ ### Patch Changes
834
+
835
+ - Updated dependencies [a755db5]
836
+ - @ai-sdk/provider@3.0.0-beta.9
837
+ - @ai-sdk/provider-utils@4.0.0-beta.23
838
+
839
+ ## 3.0.0-beta.29
840
+
841
+ ### Patch Changes
842
+
843
+ - Updated dependencies [58920e0]
844
+ - @ai-sdk/provider-utils@4.0.0-beta.22
845
+
846
+ ## 3.0.0-beta.28
847
+
848
+ ### Patch Changes
849
+
850
+ - Updated dependencies [293a6b7]
851
+ - @ai-sdk/provider-utils@4.0.0-beta.21
852
+
853
+ ## 3.0.0-beta.27
854
+
855
+ ### Patch Changes
856
+
857
+ - Updated dependencies [fca786b]
858
+ - @ai-sdk/provider-utils@4.0.0-beta.20
859
+
860
+ ## 3.0.0-beta.26
861
+
862
+ ### Patch Changes
863
+
864
+ - 3794514: feat: flexible tool output content support
865
+ - Updated dependencies [3794514]
866
+ - @ai-sdk/provider-utils@4.0.0-beta.19
867
+ - @ai-sdk/provider@3.0.0-beta.8
868
+
869
+ ## 3.0.0-beta.25
870
+
871
+ ### Patch Changes
872
+
873
+ - Updated dependencies [81d4308]
874
+ - @ai-sdk/provider@3.0.0-beta.7
875
+ - @ai-sdk/provider-utils@4.0.0-beta.18
876
+
877
+ ## 3.0.0-beta.24
878
+
879
+ ### Patch Changes
880
+
881
+ - Updated dependencies [703459a]
882
+ - @ai-sdk/provider-utils@4.0.0-beta.17
883
+
884
+ ## 3.0.0-beta.23
885
+
886
+ ### Patch Changes
887
+
888
+ - f8c981f: Fix adding google search along with url context in vertex ai
889
+
890
+ ## 3.0.0-beta.22
891
+
892
+ ### Patch Changes
893
+
894
+ - 09ba2dd: Support `imageConfig.aspectRatio` configuration for Gemini models
895
+
896
+ ## 3.0.0-beta.21
897
+
898
+ ### Patch Changes
899
+
900
+ - Updated dependencies [6306603]
901
+ - @ai-sdk/provider-utils@4.0.0-beta.16
902
+
903
+ ## 3.0.0-beta.20
904
+
905
+ ### Patch Changes
906
+
907
+ - Updated dependencies [f0b2157]
908
+ - @ai-sdk/provider-utils@4.0.0-beta.15
909
+
910
+ ## 3.0.0-beta.19
911
+
912
+ ### Patch Changes
913
+
914
+ - Updated dependencies [3b1d015]
915
+ - @ai-sdk/provider-utils@4.0.0-beta.14
916
+
917
+ ## 3.0.0-beta.18
918
+
919
+ ### Patch Changes
920
+
921
+ - Updated dependencies [d116b4b]
922
+ - @ai-sdk/provider-utils@4.0.0-beta.13
923
+
924
+ ## 3.0.0-beta.17
925
+
926
+ ### Patch Changes
927
+
928
+ - Updated dependencies [7e32fea]
929
+ - @ai-sdk/provider-utils@4.0.0-beta.12
930
+
931
+ ## 3.0.0-beta.16
932
+
933
+ ### Patch Changes
934
+
935
+ - ee50cc5: fix(provider/google): lazy schema loading
936
+
937
+ import time improved by 12.5% (22.3ms ➡️ 19.5ms)
938
+
939
+ ## 3.0.0-beta.15
940
+
941
+ ### Patch Changes
942
+
943
+ - 95f65c2: chore: use import \* from zod/v4
944
+ - Updated dependencies
945
+ - @ai-sdk/provider-utils@4.0.0-beta.11
946
+
947
+ ## 3.0.0-beta.14
948
+
949
+ ### Major Changes
950
+
951
+ - dee8b05: ai SDK 6 beta
952
+
953
+ ### Patch Changes
954
+
955
+ - Updated dependencies [dee8b05]
956
+ - @ai-sdk/provider@3.0.0-beta.6
957
+ - @ai-sdk/provider-utils@4.0.0-beta.10
958
+
959
+ ## 2.1.0-beta.13
960
+
961
+ ### Patch Changes
962
+
963
+ - Updated dependencies [521c537]
964
+ - @ai-sdk/provider-utils@3.1.0-beta.9
965
+
966
+ ## 2.1.0-beta.12
967
+
968
+ ### Patch Changes
969
+
970
+ - Updated dependencies [e06565c]
971
+ - @ai-sdk/provider-utils@3.1.0-beta.8
972
+
973
+ ## 2.1.0-beta.11
974
+
975
+ ### Patch Changes
976
+
977
+ - 9a728c8: support latest gemini model id
978
+
979
+ ## 2.1.0-beta.10
980
+
981
+ ### Patch Changes
982
+
983
+ - e8109d3: feat: tool execution approval
984
+ - Updated dependencies
985
+ - @ai-sdk/provider@2.1.0-beta.5
986
+ - @ai-sdk/provider-utils@3.1.0-beta.7
987
+
988
+ ## 2.1.0-beta.9
989
+
990
+ ### Patch Changes
991
+
992
+ - 0adc679: feat(provider): shared spec v3
993
+ - Updated dependencies
994
+ - @ai-sdk/provider-utils@3.1.0-beta.6
995
+ - @ai-sdk/provider@2.1.0-beta.4
996
+
997
+ ## 2.1.0-beta.8
998
+
999
+ ### Patch Changes
1000
+
1001
+ - 7728ac5: The mediaResolution option has been added and is now passed to the Google API.
1002
+
1003
+ ## 2.1.0-beta.7
1004
+
1005
+ ### Patch Changes
1006
+
1007
+ - 8dac895: feat: `LanguageModelV3`
1008
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
1009
+ - Updated dependencies [8dac895]
1010
+ - @ai-sdk/provider-utils@3.1.0-beta.5
1011
+ - @ai-sdk/provider@2.1.0-beta.3
1012
+
1013
+ ## 2.1.0-beta.6
1014
+
1015
+ ### Patch Changes
1016
+
1017
+ - e833473: chore (provider/google): Add preview modelIds for gemini 2.5 flash and lite
1018
+
1019
+ ## 2.1.0-beta.5
1020
+
1021
+ ### Patch Changes
1022
+
1023
+ - 4616b86: chore: update zod peer depenedency version
1024
+ - Updated dependencies [4616b86]
1025
+ - @ai-sdk/provider-utils@3.1.0-beta.4
1026
+
1027
+ ## 2.1.0-beta.4
1028
+
1029
+ ### Patch Changes
1030
+
1031
+ - ed329cb: feat: `Provider-V3`
1032
+ - 522f6b8: feat: `ImageModelV3`
1033
+ - Updated dependencies
1034
+ - @ai-sdk/provider@2.1.0-beta.2
1035
+ - @ai-sdk/provider-utils@3.1.0-beta.3
1036
+
1037
+ ## 2.1.0-beta.3
1038
+
1039
+ ### Patch Changes
1040
+
1041
+ - 0c4822d: feat: `EmbeddingModelV3`
1042
+ - 1cad0ab: feat: add provider version to user-agent header
1043
+ - Updated dependencies [0c4822d]
1044
+ - @ai-sdk/provider@2.1.0-beta.1
1045
+ - @ai-sdk/provider-utils@3.1.0-beta.2
1046
+
1047
+ ## 2.1.0-beta.2
1048
+
1049
+ ### Patch Changes
1050
+
1051
+ - 7dea60e: add promptFeedback outputs
1052
+
1053
+ ## 2.1.0-beta.1
1054
+
1055
+ ### Patch Changes
1056
+
1057
+ - Updated dependencies
1058
+ - @ai-sdk/test-server@1.0.0-beta.0
1059
+ - @ai-sdk/provider-utils@3.1.0-beta.1
1060
+
1061
+ ## 2.1.0-beta.0
1062
+
1063
+ ### Minor Changes
1064
+
1065
+ - 78928cb: release: start 5.1 beta
1066
+
1067
+ ### Patch Changes
1068
+
1069
+ - Updated dependencies [78928cb]
1070
+ - @ai-sdk/provider@2.1.0-beta.0
1071
+ - @ai-sdk/provider-utils@3.1.0-beta.0
1072
+
1073
+ ## 2.0.14
1074
+
1075
+ ### Patch Changes
1076
+
1077
+ - Updated dependencies [0294b58]
1078
+ - @ai-sdk/provider-utils@3.0.9
1079
+
1080
+ ## 2.0.13
1081
+
1082
+ ### Patch Changes
1083
+
1084
+ - 5a3ef3a: Fixed handling of image response in the tool call result.
1085
+
1086
+ ## 2.0.12
1087
+
1088
+ ### Patch Changes
1089
+
1090
+ - Updated dependencies [99964ed]
1091
+ - @ai-sdk/provider-utils@3.0.8
1092
+
1093
+ ## 2.0.11
1094
+
1095
+ ### Patch Changes
1096
+
1097
+ - a14fc2b: feat(provider/google): add gemini 2.5 flash image preview model support
1098
+
1099
+ ## 2.0.10
1100
+
1101
+ ### Patch Changes
1102
+
1103
+ - Updated dependencies [886e7cd]
1104
+ - @ai-sdk/provider-utils@3.0.7
1105
+
1106
+ ## 2.0.9
1107
+
1108
+ ### Patch Changes
1109
+
1110
+ - Updated dependencies [1b5a3d3]
1111
+ - @ai-sdk/provider-utils@3.0.6
1112
+
1113
+ ## 2.0.8
1114
+
1115
+ ### Patch Changes
1116
+
1117
+ - Updated dependencies [0857788]
1118
+ - @ai-sdk/provider-utils@3.0.5
1119
+
1120
+ ## 2.0.7
1121
+
1122
+ ### Patch Changes
1123
+
1124
+ - Updated dependencies [68751f9]
1125
+ - @ai-sdk/provider-utils@3.0.4
1126
+
1127
+ ## 2.0.6
1128
+
1129
+ ### Patch Changes
1130
+
1131
+ - Updated dependencies
1132
+ - @ai-sdk/provider-utils@3.0.3
1133
+
1134
+ ## 2.0.5
1135
+
1136
+ ### Patch Changes
1137
+
1138
+ - Updated dependencies [38ac190]
1139
+ - @ai-sdk/provider-utils@3.0.2
1140
+
1141
+ ## 2.0.4
1142
+
1143
+ ### Patch Changes
1144
+
1145
+ - 961dda1: add labels field to providerOptions
1146
+
1147
+ ## 2.0.3
1148
+
1149
+ ### Patch Changes
1150
+
1151
+ - 9fb0252: fix(google): add thought signature support for reasoning
1152
+
1153
+ ## 2.0.2
1154
+
1155
+ ### Patch Changes
1156
+
1157
+ - Updated dependencies [90d212f]
1158
+ - @ai-sdk/provider-utils@3.0.1
1159
+
1160
+ ## 2.0.1
1161
+
1162
+ ### Patch Changes
1163
+
1164
+ - f5464aa: feat(google): update docs + add YouTube URL support to Google Generative AI provider
1165
+
1166
+ ## 2.0.0
1167
+
1168
+ ### Major Changes
1169
+
1170
+ - d5f588f: AI SDK 5
1171
+
1172
+ ### Patch Changes
1173
+
1174
+ - 78e7fa9: Add code execution provider defined tool
1175
+ - f916255: feat (provider/google): add new gemini models
1176
+ - 19a4336: Expose raw usageMetadata returned from Google Generative AI in providerMetadata
1177
+ - 8af9e03: Added Image Models to the Google Provider for Imagen 3 Support
1178
+ - 1a635b5: update supportedUrls to only support native URL
1179
+ - 888b750: feat(providers/google): Add taskType support for Text Embedding Models
1180
+ - 3259565: feat (providers/google): add thinking config to provider options
1181
+ - e2aceaf: feat: add raw chunk support
1182
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1183
+ - 6a16dcf: embed() now uses the single embeddings endpoint
1184
+ No code updates are needed.
1185
+
1186
+ This is to make sure that users are not ratelimited when using the batch endpoint, since many models have different limits for batch and single embeddings.
1187
+
1188
+ Eg: Google has a limit of 150 RPM for batch requests, and 1500 RPM for single requests.
1189
+
1190
+ Before, AI SDK would always use the batch endpoint, even for embed() calls, which led to ratelimits.
1191
+
1192
+ This does not have any breaking functionality and is fully tested :)
1193
+ if (values.length > 1) {
1194
+ const batchResult = await this.doEmbedBatch({
1195
+ values,
1196
+ options,
1197
+ });
1198
+ return batchResult;
1199
+ }
1200
+
1201
+ - 26735b5: chore(embedding-model): add v2 interface
1202
+ - 5cf30ea: fix (provider/google): allow "OFF" for Google HarmBlockThreshold
1203
+ - 443d8ec: feat(embedding-model-v2): add response body field
1204
+ - c68931f: Support tool schemas that allow additional properties (e.g `z.record(z.string())`)
1205
+ - 66962ed: fix(packages): export node10 compatible types
1206
+ - a313780: fix: omit system message for gemma models
1207
+ - fd98925: chore(providers/google): update embedding model to use providerOptions
1208
+ - cb787ac: fix: remove non-functional models
1209
+ - 7378473: chore(providers/google): switch to providerOptions
1210
+ - f07a6d4: fix(providers/google): accept nullish in safetyRatings
1211
+ - 75f03b1: Add Gemini 2.5 Flash Lite GA
1212
+ - 779d916: feat: add provider option schemas for vertex imagegen and google genai
1213
+ - 581a9be: fix (provider/google): prevent error when thinking signature is used
1214
+ - 2e06f14: feat (provider/google): Change to provider defined tools
1215
+
1216
+ - Change the google search tool to be a provider defined tool
1217
+ - Added new URL context tool as a provider defined tool
1218
+
1219
+ - 8e6b69d: feat(providers/google): Add support for Gemini 2.5 Pro and Gemini 2.5 Flash (now stable)
1220
+ - 42fcd32: feat(google): automatically handle system instructions for Gemma models
1221
+ - d1a034f: feature: using Zod 4 for internal stuff
1222
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
1223
+ - 878bf45: removes (unsupported) `additionalProperties` from the Schema sent in the request payloads to Google APIs
1224
+ - 0f05690: Add gemini-embedding-001 model, add embedding provider options type export
1225
+ - 7badba2: fix(google): grounding streaming sources
1226
+ - 205077b: fix: improve Zod compatibility
1227
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
1228
+ - Updated dependencies
1229
+ - @ai-sdk/provider-utils@3.0.0
1230
+ - @ai-sdk/provider@2.0.0
1231
+
1232
+ ## 2.0.0-beta.19
1233
+
1234
+ ### Patch Changes
1235
+
1236
+ - Updated dependencies [88a8ee5]
1237
+ - @ai-sdk/provider-utils@3.0.0-beta.10
1238
+
1239
+ ## 2.0.0-beta.18
1240
+
1241
+ ### Patch Changes
1242
+
1243
+ - 78e7fa9: Add code execution provider defined tool
1244
+ - 0f05690: Add gemini-embedding-001 model, add embedding provider options type export
1245
+ - Updated dependencies [27deb4d]
1246
+ - @ai-sdk/provider@2.0.0-beta.2
1247
+ - @ai-sdk/provider-utils@3.0.0-beta.9
1248
+
1249
+ ## 2.0.0-beta.17
1250
+
1251
+ ### Patch Changes
1252
+
1253
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1254
+ - Updated dependencies [dd5fd43]
1255
+ - @ai-sdk/provider-utils@3.0.0-beta.8
1256
+
1257
+ ## 2.0.0-beta.16
1258
+
1259
+ ### Patch Changes
1260
+
1261
+ - Updated dependencies [e7fcc86]
1262
+ - @ai-sdk/provider-utils@3.0.0-beta.7
1263
+
1264
+ ## 2.0.0-beta.15
1265
+
1266
+ ### Patch Changes
1267
+
1268
+ - Updated dependencies [ac34802]
1269
+ - @ai-sdk/provider-utils@3.0.0-beta.6
1270
+
1271
+ ## 2.0.0-beta.14
1272
+
1273
+ ### Patch Changes
1274
+
1275
+ - 75f03b1: Add Gemini 2.5 Flash Lite GA
1276
+
1277
+ ## 2.0.0-beta.13
1278
+
1279
+ ### Patch Changes
1280
+
1281
+ - Updated dependencies
1282
+ - @ai-sdk/provider-utils@3.0.0-beta.5
1283
+
1284
+ ## 2.0.0-beta.12
1285
+
1286
+ ### Patch Changes
1287
+
1288
+ - 205077b: fix: improve Zod compatibility
1289
+ - Updated dependencies [205077b]
1290
+ - @ai-sdk/provider-utils@3.0.0-beta.4
1291
+
1292
+ ## 2.0.0-beta.11
1293
+
1294
+ ### Patch Changes
1295
+
1296
+ - 6a16dcf: embed() now uses the single embeddings endpoint
1297
+ No code updates are needed.
1298
+
1299
+ This is to make sure that users are not ratelimited when using the batch endpoint, since many models have different limits for batch and single embeddings.
1300
+
1301
+ Eg: Google has a limit of 150 RPM for batch requests, and 1500 RPM for single requests.
1302
+
1303
+ Before, AI SDK would always use the batch endpoint, even for embed() calls, which led to ratelimits.
1304
+
1305
+ This does not have any breaking functionality and is fully tested :)
1306
+ if (values.length > 1) {
1307
+ const batchResult = await this.doEmbedBatch({
1308
+ values,
1309
+ options,
1310
+ });
1311
+ return batchResult;
1312
+ }
1313
+
1314
+ ## 2.0.0-beta.10
1315
+
1316
+ ### Patch Changes
1317
+
1318
+ - 7badba2: fix(google): grounding streaming sources
1319
+ - Updated dependencies [05d2819]
1320
+ - @ai-sdk/provider-utils@3.0.0-beta.3
1321
+
1322
+ ## 2.0.0-beta.9
1323
+
1324
+ ### Patch Changes
1325
+
1326
+ - 8af9e03: Added Image Models to the Google Provider for Imagen 3 Support
1327
+
1328
+ ## 2.0.0-beta.8
1329
+
1330
+ ### Patch Changes
1331
+
1332
+ - 2e06f14: feat (provider/google): Change to provider defined tools
1333
+
1334
+ - Change the google search tool to be a provider defined tool
1335
+ - Added new URL context tool as a provider defined tool
1336
+
1337
+ ## 2.0.0-beta.7
1338
+
1339
+ ### Patch Changes
1340
+
1341
+ - 19a4336: Expose raw usageMetadata returned from Google Generative AI in providerMetadata
1342
+
1343
+ ## 2.0.0-beta.6
1344
+
1345
+ ### Patch Changes
1346
+
1347
+ - 878bf45: removes (unsupported) `additionalProperties` from the Schema sent in the request payloads to Google APIs
1348
+
1349
+ ## 2.0.0-beta.5
1350
+
1351
+ ### Patch Changes
1352
+
1353
+ - 42fcd32: feat(google): automatically handle system instructions for Gemma models
1354
+
1355
+ ## 2.0.0-beta.4
1356
+
1357
+ ### Patch Changes
1358
+
1359
+ - c68931f: Support tool schemas that allow additional properties (e.g `z.record(z.string())`)
1360
+ - 8e6b69d: feat(providers/google): Add support for Gemini 2.5 Pro and Gemini 2.5 Flash (now stable)
1361
+
1362
+ ## 2.0.0-beta.3
1363
+
1364
+ ### Patch Changes
1365
+
1366
+ - cb787ac: fix: remove non-functional models
1367
+ - d1a034f: feature: using Zod 4 for internal stuff
1368
+ - Updated dependencies
1369
+ - @ai-sdk/provider-utils@3.0.0-beta.2
1370
+
1371
+ ## 2.0.0-beta.2
1372
+
1373
+ ### Patch Changes
1374
+
1375
+ - a313780: fix: omit system message for gemma models
1376
+
1377
+ ## 2.0.0-beta.1
1378
+
1379
+ ### Patch Changes
1380
+
1381
+ - Updated dependencies
1382
+ - @ai-sdk/provider@2.0.0-beta.1
1383
+ - @ai-sdk/provider-utils@3.0.0-beta.1
1384
+
1385
+ ## 2.0.0-alpha.15
1386
+
1387
+ ### Patch Changes
1388
+
1389
+ - Updated dependencies
1390
+ - @ai-sdk/provider@2.0.0-alpha.15
1391
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
1392
+
1393
+ ## 2.0.0-alpha.14
1394
+
1395
+ ### Patch Changes
1396
+
1397
+ - Updated dependencies
1398
+ - @ai-sdk/provider@2.0.0-alpha.14
1399
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
1400
+
1401
+ ## 2.0.0-alpha.13
1402
+
1403
+ ### Patch Changes
1404
+
1405
+ - Updated dependencies [68ecf2f]
1406
+ - @ai-sdk/provider@2.0.0-alpha.13
1407
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
1408
+
1409
+ ## 2.0.0-alpha.12
1410
+
1411
+ ### Patch Changes
1412
+
1413
+ - e2aceaf: feat: add raw chunk support
1414
+ - Updated dependencies [e2aceaf]
1415
+ - @ai-sdk/provider@2.0.0-alpha.12
1416
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
1417
+
1418
+ ## 2.0.0-alpha.11
1419
+
1420
+ ### Patch Changes
1421
+
1422
+ - Updated dependencies [c1e6647]
1423
+ - @ai-sdk/provider@2.0.0-alpha.11
1424
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
1425
+
1426
+ ## 2.0.0-alpha.10
1427
+
1428
+ ### Patch Changes
1429
+
1430
+ - 581a9be: fix (provider/google): prevent error when thinking signature is used
1431
+ - Updated dependencies [c4df419]
1432
+ - @ai-sdk/provider@2.0.0-alpha.10
1433
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
1434
+
1435
+ ## 2.0.0-alpha.9
1436
+
1437
+ ### Patch Changes
1438
+
1439
+ - Updated dependencies [811dff3]
1440
+ - @ai-sdk/provider@2.0.0-alpha.9
1441
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
1442
+
1443
+ ## 2.0.0-alpha.8
1444
+
1445
+ ### Patch Changes
1446
+
1447
+ - 1a635b5: update supportedUrls to only support native URL
1448
+ - Updated dependencies
1449
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
1450
+ - @ai-sdk/provider@2.0.0-alpha.8
1451
+
1452
+ ## 2.0.0-alpha.7
1453
+
1454
+ ### Patch Changes
1455
+
1456
+ - Updated dependencies [5c56081]
1457
+ - @ai-sdk/provider@2.0.0-alpha.7
1458
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
1459
+
1460
+ ## 2.0.0-alpha.6
1461
+
1462
+ ### Patch Changes
1463
+
1464
+ - Updated dependencies [0d2c085]
1465
+ - @ai-sdk/provider@2.0.0-alpha.6
1466
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
1467
+
1468
+ ## 2.0.0-alpha.4
1469
+
1470
+ ### Patch Changes
1471
+
1472
+ - Updated dependencies [dc714f3]
1473
+ - @ai-sdk/provider@2.0.0-alpha.4
1474
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
1475
+
1476
+ ## 2.0.0-alpha.3
1477
+
1478
+ ### Patch Changes
1479
+
1480
+ - Updated dependencies [6b98118]
1481
+ - @ai-sdk/provider@2.0.0-alpha.3
1482
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
1483
+
1484
+ ## 2.0.0-alpha.2
1485
+
1486
+ ### Patch Changes
1487
+
1488
+ - Updated dependencies [26535e0]
1489
+ - @ai-sdk/provider@2.0.0-alpha.2
1490
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
1491
+
1492
+ ## 2.0.0-alpha.1
1493
+
1494
+ ### Patch Changes
1495
+
1496
+ - Updated dependencies [3f2f00c]
1497
+ - @ai-sdk/provider@2.0.0-alpha.1
1498
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
1499
+
1500
+ ## 2.0.0-canary.20
1501
+
1502
+ ### Patch Changes
1503
+
1504
+ - Updated dependencies [faf8446]
1505
+ - @ai-sdk/provider-utils@3.0.0-canary.19
1506
+
1507
+ ## 2.0.0-canary.19
1508
+
1509
+ ### Patch Changes
1510
+
1511
+ - Updated dependencies [40acf9b]
1512
+ - @ai-sdk/provider-utils@3.0.0-canary.18
1513
+
1514
+ ## 2.0.0-canary.18
1515
+
1516
+ ### Patch Changes
1517
+
1518
+ - f07a6d4: fix(providers/google): accept nullish in safetyRatings
1519
+ - Updated dependencies [ea7a7c9]
1520
+ - @ai-sdk/provider-utils@3.0.0-canary.17
1521
+
1522
+ ## 2.0.0-canary.17
1523
+
1524
+ ### Patch Changes
1525
+
1526
+ - Updated dependencies [87b828f]
1527
+ - @ai-sdk/provider-utils@3.0.0-canary.16
1528
+
1529
+ ## 2.0.0-canary.16
1530
+
1531
+ ### Patch Changes
1532
+
1533
+ - Updated dependencies
1534
+ - @ai-sdk/provider-utils@3.0.0-canary.15
1535
+ - @ai-sdk/provider@2.0.0-canary.14
1536
+
1537
+ ## 2.0.0-canary.15
1538
+
1539
+ ### Patch Changes
1540
+
1541
+ - Updated dependencies
1542
+ - @ai-sdk/provider-utils@3.0.0-canary.14
1543
+ - @ai-sdk/provider@2.0.0-canary.13
1544
+
1545
+ ## 2.0.0-canary.14
1546
+
1547
+ ### Patch Changes
1548
+
1549
+ - f916255: feat (provider/google): add new gemini models
1550
+ - Updated dependencies
1551
+ - @ai-sdk/provider@2.0.0-canary.12
1552
+ - @ai-sdk/provider-utils@3.0.0-canary.13
1553
+
1554
+ ## 2.0.0-canary.13
1555
+
1556
+ ### Patch Changes
1557
+
1558
+ - 7378473: chore(providers/google): switch to providerOptions
1559
+ - Updated dependencies
1560
+ - @ai-sdk/provider@2.0.0-canary.11
1561
+ - @ai-sdk/provider-utils@3.0.0-canary.12
1562
+
1563
+ ## 2.0.0-canary.12
1564
+
1565
+ ### Patch Changes
1566
+
1567
+ - 888b750: feat(providers/google): Add taskType support for Text Embedding Models
1568
+ - 66962ed: fix(packages): export node10 compatible types
1569
+ - Updated dependencies
1570
+ - @ai-sdk/provider-utils@3.0.0-canary.11
1571
+ - @ai-sdk/provider@2.0.0-canary.10
1572
+
1573
+ ## 2.0.0-canary.11
1574
+
1575
+ ### Patch Changes
1576
+
1577
+ - Updated dependencies [e86be6f]
1578
+ - @ai-sdk/provider@2.0.0-canary.9
1579
+ - @ai-sdk/provider-utils@3.0.0-canary.10
1580
+
1581
+ ## 2.0.0-canary.10
1582
+
1583
+ ### Patch Changes
1584
+
1585
+ - 3259565: feat (providers/google): add thinking config to provider options
1586
+ - fd98925: chore(providers/google): update embedding model to use providerOptions
1587
+ - Updated dependencies
1588
+ - @ai-sdk/provider@2.0.0-canary.8
1589
+ - @ai-sdk/provider-utils@3.0.0-canary.9
1590
+
1591
+ ## 2.0.0-canary.9
1592
+
1593
+ ### Patch Changes
1594
+
1595
+ - Updated dependencies
1596
+ - @ai-sdk/provider-utils@3.0.0-canary.8
1597
+ - @ai-sdk/provider@2.0.0-canary.7
1598
+
1599
+ ## 2.0.0-canary.8
1600
+
1601
+ ### Patch Changes
1602
+
1603
+ - 26735b5: chore(embedding-model): add v2 interface
1604
+ - 443d8ec: feat(embedding-model-v2): add response body field
1605
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
1606
+ - Updated dependencies
1607
+ - @ai-sdk/provider@2.0.0-canary.6
1608
+ - @ai-sdk/provider-utils@3.0.0-canary.7
1609
+
1610
+ ## 2.0.0-canary.7
1611
+
1612
+ ### Patch Changes
1613
+
1614
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
1615
+ - Updated dependencies
1616
+ - @ai-sdk/provider@2.0.0-canary.5
1617
+ - @ai-sdk/provider-utils@3.0.0-canary.6
1618
+
1619
+ ## 2.0.0-canary.6
1620
+
1621
+ ### Patch Changes
1622
+
1623
+ - Updated dependencies [6f6bb89]
1624
+ - @ai-sdk/provider@2.0.0-canary.4
1625
+ - @ai-sdk/provider-utils@3.0.0-canary.5
1626
+
1627
+ ## 2.0.0-canary.5
1628
+
1629
+ ### Patch Changes
1630
+
1631
+ - Updated dependencies [d1a1aa1]
1632
+ - @ai-sdk/provider@2.0.0-canary.3
1633
+ - @ai-sdk/provider-utils@3.0.0-canary.4
1634
+
1635
+ ## 2.0.0-canary.4
1636
+
1637
+ ### Patch Changes
1638
+
1639
+ - Updated dependencies
1640
+ - @ai-sdk/provider-utils@3.0.0-canary.3
1641
+ - @ai-sdk/provider@2.0.0-canary.2
1642
+
1643
+ ## 2.0.0-canary.3
1644
+
1645
+ ### Patch Changes
1646
+
1647
+ - Updated dependencies
1648
+ - @ai-sdk/provider@2.0.0-canary.1
1649
+ - @ai-sdk/provider-utils@3.0.0-canary.2
1650
+
1651
+ ## 2.0.0-canary.2
1652
+
1653
+ ### Patch Changes
1654
+
1655
+ - 5cf30ea: fix (provider/google): allow "OFF" for Google HarmBlockThreshold
1656
+
1657
+ ## 2.0.0-canary.1
1658
+
1659
+ ### Patch Changes
1660
+
1661
+ - 779d916: feat: add provider option schemas for vertex imagegen and google genai
1662
+ - Updated dependencies
1663
+ - @ai-sdk/provider-utils@3.0.0-canary.1
1664
+
1665
+ ## 2.0.0-canary.0
1666
+
1667
+ ### Major Changes
1668
+
1669
+ - d5f588f: AI SDK 5
1670
+
1671
+ ### Patch Changes
1672
+
1673
+ - Updated dependencies [d5f588f]
1674
+ - @ai-sdk/provider-utils@3.0.0-canary.0
1675
+ - @ai-sdk/provider@2.0.0-canary.0
1676
+
1677
+ ## 1.2.5
1678
+
1679
+ ### Patch Changes
1680
+
1681
+ - Updated dependencies [28be004]
1682
+ - @ai-sdk/provider-utils@2.2.3
1683
+
1684
+ ## 1.2.4
1685
+
1686
+ ### Patch Changes
1687
+
1688
+ - Updated dependencies [b01120e]
1689
+ - @ai-sdk/provider-utils@2.2.2
1690
+
1691
+ ## 1.2.3
1692
+
1693
+ ### Patch Changes
1694
+
1695
+ - 871df87: feat (provider/google): add gemini-2.5-pro-exp-03-25 to model list
1696
+
1697
+ ## 1.2.2
1698
+
1699
+ ### Patch Changes
1700
+
1701
+ - Updated dependencies [f10f0fa]
1702
+ - @ai-sdk/provider-utils@2.2.1
1703
+
1704
+ ## 1.2.1
1705
+
1706
+ ### Patch Changes
1707
+
1708
+ - 994a13b: feat (provider/google): support IMAGE_SAFETY finish reason
1709
+
1710
+ ## 1.2.0
1711
+
1712
+ ### Minor Changes
1713
+
1714
+ - 5bc638d: AI SDK 4.2
1715
+
1716
+ ### Patch Changes
1717
+
1718
+ - Updated dependencies [5bc638d]
1719
+ - @ai-sdk/provider@1.1.0
1720
+ - @ai-sdk/provider-utils@2.2.0
1721
+
1722
+ ## 1.1.27
1723
+
1724
+ ### Patch Changes
1725
+
1726
+ - d0c4659: feat (provider-utils): parseProviderOptions function
1727
+ - Updated dependencies [d0c4659]
1728
+ - @ai-sdk/provider-utils@2.1.15
1729
+
1730
+ ## 1.1.26
1731
+
1732
+ ### Patch Changes
1733
+
1734
+ - 0bd5bc6: feat (ai): support model-generated files
1735
+ - Updated dependencies [0bd5bc6]
1736
+ - @ai-sdk/provider@1.0.12
1737
+ - @ai-sdk/provider-utils@2.1.14
1738
+
1739
+ ## 1.1.25
1740
+
1741
+ ### Patch Changes
1742
+
1743
+ - Updated dependencies [2e1101a]
1744
+ - @ai-sdk/provider@1.0.11
1745
+ - @ai-sdk/provider-utils@2.1.13
1746
+
1747
+ ## 1.1.24
1748
+
1749
+ ### Patch Changes
1750
+
1751
+ - 5261762: fix (provider/google): ensure correct finishReason for tool calls in streaming response
1752
+
1753
+ ## 1.1.23
1754
+
1755
+ ### Patch Changes
1756
+
1757
+ - 413f5a7: feat (providers/google): add gemma 3 model id
1758
+
1759
+ ## 1.1.22
1760
+
1761
+ ### Patch Changes
1762
+
1763
+ - 62f46fd: feat (provider/google): add support for dynamic retrieval
1764
+
1765
+ ## 1.1.21
1766
+
1767
+ ### Patch Changes
1768
+
1769
+ - Updated dependencies [1531959]
1770
+ - @ai-sdk/provider-utils@2.1.12
1771
+
1772
+ ## 1.1.20
1773
+
1774
+ ### Patch Changes
1775
+
1776
+ - e1d3d42: feat (ai): expose raw response body in generateText and generateObject
1777
+ - Updated dependencies [e1d3d42]
1778
+ - @ai-sdk/provider@1.0.10
1779
+ - @ai-sdk/provider-utils@2.1.11
1780
+
1781
+ ## 1.1.19
1782
+
1783
+ ### Patch Changes
1784
+
1785
+ - 2c27583: fix (provider/google): support empty content in malformed function call responses
1786
+
1787
+ ## 1.1.18
1788
+
1789
+ ### Patch Changes
1790
+
1791
+ - 5c8f512: feat (provider/google): add seed support
1792
+
1793
+ ## 1.1.17
1794
+
1795
+ ### Patch Changes
1796
+
1797
+ - Updated dependencies [ddf9740]
1798
+ - @ai-sdk/provider@1.0.9
1799
+ - @ai-sdk/provider-utils@2.1.10
1800
+
1801
+ ## 1.1.16
1802
+
1803
+ ### Patch Changes
1804
+
1805
+ - 1b2e2a0: fix (provider/google): add resilience against undefined parts
1806
+
1807
+ ## 1.1.15
1808
+
1809
+ ### Patch Changes
1810
+
1811
+ - Updated dependencies [2761f06]
1812
+ - @ai-sdk/provider@1.0.8
1813
+ - @ai-sdk/provider-utils@2.1.9
1814
+
1815
+ ## 1.1.14
1816
+
1817
+ ### Patch Changes
1818
+
1819
+ - 08a3641: fix (provider/google): support nullable enums in schema
1820
+
1821
+ ## 1.1.13
1822
+
1823
+ ### Patch Changes
1824
+
1825
+ - Updated dependencies [2e898b4]
1826
+ - @ai-sdk/provider-utils@2.1.8
1827
+
1828
+ ## 1.1.12
1829
+
1830
+ ### Patch Changes
1831
+
1832
+ - Updated dependencies [3ff4ef8]
1833
+ - @ai-sdk/provider-utils@2.1.7
1834
+
1835
+ ## 1.1.11
1836
+
1837
+ ### Patch Changes
1838
+
1839
+ - 6eb7fc4: feat (ai/core): url source support
1840
+
1841
+ ## 1.1.10
1842
+
1843
+ ### Patch Changes
1844
+
1845
+ - e5567f7: feat (provider/google): update model ids
1846
+
1847
+ ## 1.1.9
1848
+
1849
+ ### Patch Changes
1850
+
1851
+ - b2573de: fix (provider/google): remove reasoning text following removal from Gemini API
1852
+
1853
+ ## 1.1.8
1854
+
1855
+ ### Patch Changes
1856
+
1857
+ - Updated dependencies [d89c3b9]
1858
+ - @ai-sdk/provider@1.0.7
1859
+ - @ai-sdk/provider-utils@2.1.6
1860
+
1861
+ ## 1.1.7
1862
+
1863
+ ### Patch Changes
1864
+
1865
+ - d399f25: feat (provider/google-vertex): support public file urls in messages
1866
+
1867
+ ## 1.1.6
1868
+
1869
+ ### Patch Changes
1870
+
1871
+ - e012cd8: feat (provider/google): add reasoning support
1872
+
1873
+ ## 1.1.5
1874
+
1875
+ ### Patch Changes
1876
+
1877
+ - Updated dependencies [3a602ca]
1878
+ - @ai-sdk/provider-utils@2.1.5
1879
+
1880
+ ## 1.1.4
1881
+
1882
+ ### Patch Changes
1883
+
1884
+ - Updated dependencies [066206e]
1885
+ - @ai-sdk/provider-utils@2.1.4
1886
+
1887
+ ## 1.1.3
1888
+
1889
+ ### Patch Changes
1890
+
1891
+ - Updated dependencies [39e5c1f]
1892
+ - @ai-sdk/provider-utils@2.1.3
1893
+
1894
+ ## 1.1.2
1895
+
1896
+ ### Patch Changes
1897
+
1898
+ - Updated dependencies
1899
+ - @ai-sdk/provider-utils@2.1.2
1900
+ - @ai-sdk/provider@1.0.6
1901
+
1902
+ ## 1.1.1
1903
+
1904
+ ### Patch Changes
1905
+
1906
+ - Updated dependencies
1907
+ - @ai-sdk/provider-utils@2.1.1
1908
+ - @ai-sdk/provider@1.0.5
1909
+
1910
+ ## 1.1.0
1911
+
1912
+ ### Minor Changes
1913
+
1914
+ - 62ba5ad: release: AI SDK 4.1
1915
+
1916
+ ### Patch Changes
1917
+
1918
+ - Updated dependencies [62ba5ad]
1919
+ - @ai-sdk/provider-utils@2.1.0
1920
+
1921
+ ## 1.0.17
1922
+
1923
+ ### Patch Changes
1924
+
1925
+ - Updated dependencies [00114c5]
1926
+ - @ai-sdk/provider-utils@2.0.8
1927
+
1928
+ ## 1.0.16
1929
+
1930
+ ### Patch Changes
1931
+
1932
+ - 4eb9b41: fix (provider/google): support conversion of string enums to openapi spec
1933
+
1934
+ ## 1.0.15
1935
+
1936
+ ### Patch Changes
1937
+
1938
+ - 7611964: feat (provider/xai): Support structured output for latest models.
1939
+
1940
+ ## 1.0.14
1941
+
1942
+ ### Patch Changes
1943
+
1944
+ - Updated dependencies
1945
+ - @ai-sdk/provider-utils@2.0.7
1946
+
1947
+ ## 1.0.13
1948
+
1949
+ ### Patch Changes
1950
+
1951
+ - Updated dependencies
1952
+ - @ai-sdk/provider@1.0.4
1953
+ - @ai-sdk/provider-utils@2.0.6
1954
+
1955
+ ## 1.0.12
1956
+
1957
+ ### Patch Changes
1958
+
1959
+ - 5ed5e45: chore (config): Use ts-library.json tsconfig for no-UI libs.
1960
+ - Updated dependencies [5ed5e45]
1961
+ - @ai-sdk/provider-utils@2.0.5
1962
+ - @ai-sdk/provider@1.0.3
1963
+
1964
+ ## 1.0.11
1965
+
1966
+ ### Patch Changes
1967
+
1968
+ - db31e74: feat: adding audioTimestamp support to GoogleGenerativeAISettings
1969
+
1970
+ ## 1.0.10
1971
+
1972
+ ### Patch Changes
1973
+
1974
+ - e07439a: feat (provider/google): Include safety ratings response detail.
1975
+ - 4017b0f: feat (provider/google-vertex): Enhance grounding metadata response detail.
1976
+ - a9df182: feat (provider/google): Add support for search grounding.
1977
+
1978
+ ## 1.0.9
1979
+
1980
+ ### Patch Changes
1981
+
1982
+ - c0b1c7e: feat (provider/google): Add Gemini 2.0 model.
1983
+
1984
+ ## 1.0.8
1985
+
1986
+ ### Patch Changes
1987
+
1988
+ - b7372dc: feat (provider/google): Include optional response grounding metadata.
1989
+
1990
+ ## 1.0.7
1991
+
1992
+ ### Patch Changes
1993
+
1994
+ - Updated dependencies [09a9cab]
1995
+ - @ai-sdk/provider@1.0.2
1996
+ - @ai-sdk/provider-utils@2.0.4
1997
+
1998
+ ## 1.0.6
1999
+
2000
+ ### Patch Changes
2001
+
2002
+ - 9e54403: fix (provider/google-vertex): support empty object as usage metadata
2003
+
2004
+ ## 1.0.5
2005
+
2006
+ ### Patch Changes
2007
+
2008
+ - 0984f0b: feat (provider/google-vertex): Rewrite for Edge runtime support.
2009
+ - Updated dependencies [0984f0b]
2010
+ - @ai-sdk/provider-utils@2.0.3
2011
+
2012
+ ## 1.0.4
2013
+
2014
+ ### Patch Changes
2015
+
2016
+ - 6373c60: fix (provider/google): send json schema into provider
2017
+
2018
+ ## 1.0.3
2019
+
2020
+ ### Patch Changes
2021
+
2022
+ - Updated dependencies [b446ae5]
2023
+ - @ai-sdk/provider@1.0.1
2024
+ - @ai-sdk/provider-utils@2.0.2
2025
+
2026
+ ## 1.0.2
2027
+
2028
+ ### Patch Changes
2029
+
2030
+ - b748dfb: feat (providers): update model lists
2031
+
2032
+ ## 1.0.1
2033
+
2034
+ ### Patch Changes
2035
+
2036
+ - Updated dependencies [c3ab5de]
2037
+ - @ai-sdk/provider-utils@2.0.1
2038
+
2039
+ ## 1.0.0
2040
+
2041
+ ### Major Changes
2042
+
2043
+ - 66060f7: chore (release): bump major version to 4.0
2044
+ - 0d3d3f5: chore (providers): remove baseUrl option
2045
+ - 36b03b0: chore (provider/google): remove topK model setting
2046
+ - 277fc6b: chore (provider/google): remove facade
2047
+
2048
+ ### Patch Changes
2049
+
2050
+ - c38a0db: fix (provider/google): allow empty candidates array when streaming
2051
+ - 0509c34: fix (provider/google): add name/content details to tool responses
2052
+ - Updated dependencies
2053
+ - @ai-sdk/provider-utils@2.0.0
2054
+ - @ai-sdk/provider@1.0.0
2055
+
2056
+ ## 1.0.0-canary.6
2057
+
2058
+ ### Patch Changes
2059
+
2060
+ - c38a0db: fix (provider/google): allow empty candidates array when streaming
2061
+
2062
+ ## 1.0.0-canary.5
2063
+
2064
+ ### Patch Changes
2065
+
2066
+ - 0509c34: fix (provider/google): add name/content details to tool responses
2067
+
2068
+ ## 1.0.0-canary.4
2069
+
2070
+ ### Major Changes
2071
+
2072
+ - 36b03b0: chore (provider/google): remove topK model setting
2073
+ - 277fc6b: chore (provider/google): remove facade
2074
+
2075
+ ## 1.0.0-canary.3
2076
+
2077
+ ### Patch Changes
2078
+
2079
+ - Updated dependencies [8426f55]
2080
+ - @ai-sdk/provider-utils@2.0.0-canary.3
2081
+
2082
+ ## 1.0.0-canary.2
2083
+
2084
+ ### Patch Changes
2085
+
2086
+ - Updated dependencies
2087
+ - @ai-sdk/provider-utils@2.0.0-canary.2
2088
+
2089
+ ## 1.0.0-canary.1
2090
+
2091
+ ### Major Changes
2092
+
2093
+ - 0d3d3f5: chore (providers): remove baseUrl option
2094
+
2095
+ ### Patch Changes
2096
+
2097
+ - Updated dependencies [b1da952]
2098
+ - @ai-sdk/provider-utils@2.0.0-canary.1
2099
+
2100
+ ## 1.0.0-canary.0
2101
+
2102
+ ### Major Changes
2103
+
2104
+ - 66060f7: chore (release): bump major version to 4.0
2105
+
2106
+ ### Patch Changes
2107
+
2108
+ - Updated dependencies
2109
+ - @ai-sdk/provider-utils@2.0.0-canary.0
2110
+ - @ai-sdk/provider@1.0.0-canary.0
2111
+
2112
+ ## 0.0.55
2113
+
2114
+ ### Patch Changes
2115
+
2116
+ - 11beb9d: fix (provider/google): support tool calls without parameters
2117
+
2118
+ ## 0.0.54
2119
+
2120
+ ### Patch Changes
2121
+
2122
+ - 1486128: feat: add supportsUrl to language model specification
2123
+ - 1486128: feat (provider/google): support native file URLs without download
2124
+ - 3b1b69a: feat: provider-defined tools
2125
+ - Updated dependencies
2126
+ - @ai-sdk/provider-utils@1.0.22
2127
+ - @ai-sdk/provider@0.0.26
2128
+
2129
+ ## 0.0.53
2130
+
2131
+ ### Patch Changes
2132
+
2133
+ - b9b0d7b: feat (ai): access raw request body
2134
+ - Updated dependencies [b9b0d7b]
2135
+ - @ai-sdk/provider@0.0.25
2136
+ - @ai-sdk/provider-utils@1.0.21
2137
+
2138
+ ## 0.0.52
2139
+
2140
+ ### Patch Changes
2141
+
2142
+ - 7944e61: feat (provider/google): enable frequencyPenalty and presencePenalty settings
2143
+
2144
+ ## 0.0.51
2145
+
2146
+ ### Patch Changes
2147
+
2148
+ - d595d0d: feat (ai/core): file content parts
2149
+ - Updated dependencies [d595d0d]
2150
+ - @ai-sdk/provider@0.0.24
2151
+ - @ai-sdk/provider-utils@1.0.20
2152
+
2153
+ ## 0.0.50
2154
+
2155
+ ### Patch Changes
2156
+
2157
+ - 5d113fb: feat (provider/google): support fine-tuned models
2158
+
2159
+ ## 0.0.49
2160
+
2161
+ ### Patch Changes
2162
+
2163
+ - 2e32bd0: fix (provider/google): deal with empty candidatesTokenCount
2164
+ - 2e32bd0: feat (provider/google): add new models
2165
+
2166
+ ## 0.0.48
2167
+
2168
+ ### Patch Changes
2169
+
2170
+ - Updated dependencies [273f696]
2171
+ - @ai-sdk/provider-utils@1.0.19
2172
+
2173
+ ## 0.0.47
2174
+
2175
+ ### Patch Changes
2176
+
2177
+ - Updated dependencies
2178
+ - @ai-sdk/provider-utils@1.0.18
2179
+ - @ai-sdk/provider@0.0.23
2180
+
2181
+ ## 0.0.46
2182
+
2183
+ ### Patch Changes
2184
+
2185
+ - 26515cb: feat (ai/provider): introduce ProviderV1 specification
2186
+ - Updated dependencies [26515cb]
2187
+ - @ai-sdk/provider@0.0.22
2188
+ - @ai-sdk/provider-utils@1.0.17
2189
+
2190
+ ## 0.0.45
2191
+
2192
+ ### Patch Changes
2193
+
2194
+ - Updated dependencies [09f895f]
2195
+ - @ai-sdk/provider-utils@1.0.16
2196
+
2197
+ ## 0.0.44
2198
+
2199
+ ### Patch Changes
2200
+
2201
+ - cb94042: fix (provider/google): allow disabling structured generation
2202
+
2203
+ ## 0.0.43
2204
+
2205
+ ### Patch Changes
2206
+
2207
+ - Updated dependencies [d67fa9c]
2208
+ - @ai-sdk/provider-utils@1.0.15
2209
+
2210
+ ## 0.0.42
2211
+
2212
+ ### Patch Changes
2213
+
2214
+ - 9c1f4f2: chore (provider/google): remove "models/" from model name
2215
+
2216
+ ## 0.0.41
2217
+
2218
+ ### Patch Changes
2219
+
2220
+ - 5da9c7f: feat (provider/google): embedding support
2221
+
2222
+ ## 0.0.40
2223
+
2224
+ ### Patch Changes
2225
+
2226
+ - Updated dependencies [f2c025e]
2227
+ - @ai-sdk/provider@0.0.21
2228
+ - @ai-sdk/provider-utils@1.0.14
2229
+
2230
+ ## 0.0.39
2231
+
2232
+ ### Patch Changes
2233
+
2234
+ - Updated dependencies [6ac355e]
2235
+ - @ai-sdk/provider@0.0.20
2236
+ - @ai-sdk/provider-utils@1.0.13
2237
+
2238
+ ## 0.0.38
2239
+
2240
+ ### Patch Changes
2241
+
2242
+ - 123134b: fix (provider/google): change default object generation mode to json
2243
+ - dd712ac: fix: use FetchFunction type to prevent self-reference
2244
+ - Updated dependencies [dd712ac]
2245
+ - @ai-sdk/provider-utils@1.0.12
2246
+
2247
+ ## 0.0.37
2248
+
2249
+ ### Patch Changes
2250
+
2251
+ - 89b18ca: fix (ai/provider): send finish reason 'unknown' by default
2252
+ - Updated dependencies [dd4a0f5]
2253
+ - @ai-sdk/provider@0.0.19
2254
+ - @ai-sdk/provider-utils@1.0.11
2255
+
2256
+ ## 0.0.36
2257
+
2258
+ ### Patch Changes
2259
+
2260
+ - Updated dependencies
2261
+ - @ai-sdk/provider-utils@1.0.10
2262
+ - @ai-sdk/provider@0.0.18
2263
+
2264
+ ## 0.0.35
2265
+
2266
+ ### Patch Changes
2267
+
2268
+ - 1e94ed8: feat (provider/google): send json schema in object-json mode
2269
+
2270
+ ## 0.0.34
2271
+
2272
+ ### Patch Changes
2273
+
2274
+ - Updated dependencies [029af4c]
2275
+ - @ai-sdk/provider@0.0.17
2276
+ - @ai-sdk/provider-utils@1.0.9
2277
+
2278
+ ## 0.0.33
2279
+
2280
+ ### Patch Changes
2281
+
2282
+ - Updated dependencies [d58517b]
2283
+ - @ai-sdk/provider@0.0.16
2284
+ - @ai-sdk/provider-utils@1.0.8
2285
+
2286
+ ## 0.0.32
2287
+
2288
+ ### Patch Changes
2289
+
2290
+ - Updated dependencies [96aed25]
2291
+ - @ai-sdk/provider@0.0.15
2292
+ - @ai-sdk/provider-utils@1.0.7
2293
+
2294
+ ## 0.0.31
2295
+
2296
+ ### Patch Changes
2297
+
2298
+ - Updated dependencies
2299
+ - @ai-sdk/provider-utils@1.0.6
2300
+
2301
+ ## 0.0.30
2302
+
2303
+ ### Patch Changes
2304
+
2305
+ - a8d1c9e9: feat (ai/core): parallel image download
2306
+ - Updated dependencies [a8d1c9e9]
2307
+ - @ai-sdk/provider-utils@1.0.5
2308
+ - @ai-sdk/provider@0.0.14
2309
+
2310
+ ## 0.0.29
2311
+
2312
+ ### Patch Changes
2313
+
2314
+ - Updated dependencies [4f88248f]
2315
+ - @ai-sdk/provider-utils@1.0.4
2316
+
2317
+ ## 0.0.28
2318
+
2319
+ ### Patch Changes
2320
+
2321
+ - 2b9da0f0: feat (core): support stopSequences setting.
2322
+ - a5b58845: feat (core): support topK setting
2323
+ - 4aa8deb3: feat (provider): support responseFormat setting in provider api
2324
+ - 13b27ec6: chore (ai/core): remove grammar mode
2325
+ - Updated dependencies
2326
+ - @ai-sdk/provider@0.0.13
2327
+ - @ai-sdk/provider-utils@1.0.3
2328
+
2329
+ ## 0.0.27
2330
+
2331
+ ### Patch Changes
2332
+
2333
+ - 2e59d266: feat (provider/google): add cachedContent optional setting
2334
+ - d2b9723d: feat (provider/google): support system instructions
2335
+ - 4dfe0b00: feat (provider/google): add tool support for object generation (new default mode)
2336
+
2337
+ ## 0.0.26
2338
+
2339
+ ### Patch Changes
2340
+
2341
+ - Updated dependencies [b7290943]
2342
+ - @ai-sdk/provider@0.0.12
2343
+ - @ai-sdk/provider-utils@1.0.2
2344
+
2345
+ ## 0.0.25
2346
+
2347
+ ### Patch Changes
2348
+
2349
+ - Updated dependencies [d481729f]
2350
+ - @ai-sdk/provider-utils@1.0.1
2351
+
2352
+ ## 0.0.24
2353
+
2354
+ ### Patch Changes
2355
+
2356
+ - 5edc6110: feat (ai/core): add custom request header support
2357
+ - Updated dependencies
2358
+ - @ai-sdk/provider@0.0.11
2359
+ - @ai-sdk/provider-utils@1.0.0
2360
+
2361
+ ## 0.0.23
2362
+
2363
+ ### Patch Changes
2364
+
2365
+ - Updated dependencies [02f6a088]
2366
+ - @ai-sdk/provider-utils@0.0.16
2367
+
2368
+ ## 0.0.22
2369
+
2370
+ ### Patch Changes
2371
+
2372
+ - Updated dependencies
2373
+ - @ai-sdk/provider-utils@0.0.15
2374
+
2375
+ ## 0.0.21
2376
+
2377
+ ### Patch Changes
2378
+
2379
+ - 4728c37f: feat (core): add text embedding model support to provider registry
2380
+ - 7910ae84: feat (providers): support custom fetch implementations
2381
+ - Updated dependencies [7910ae84]
2382
+ - @ai-sdk/provider-utils@0.0.14
2383
+
2384
+ ## 0.0.20
2385
+
2386
+ ### Patch Changes
2387
+
2388
+ - Updated dependencies [102ca22f]
2389
+ - @ai-sdk/provider@0.0.10
2390
+ - @ai-sdk/provider-utils@0.0.13
2391
+
2392
+ ## 0.0.19
2393
+
2394
+ ### Patch Changes
2395
+
2396
+ - 09295e2e: feat (@ai-sdk/google): automatically download image URLs
2397
+ - Updated dependencies
2398
+ - @ai-sdk/provider@0.0.9
2399
+ - @ai-sdk/provider-utils@0.0.12
2400
+
2401
+ ## 0.0.18
2402
+
2403
+ ### Patch Changes
2404
+
2405
+ - 8022d73e: feat (provider/google): add safety setting option on models
2406
+
2407
+ ## 0.0.17
2408
+
2409
+ ### Patch Changes
2410
+
2411
+ - f39c0dd2: feat (provider): implement toolChoice support
2412
+ - Updated dependencies [f39c0dd2]
2413
+ - @ai-sdk/provider@0.0.8
2414
+ - @ai-sdk/provider-utils@0.0.11
2415
+
2416
+ ## 0.0.16
2417
+
2418
+ ### Patch Changes
2419
+
2420
+ - 24683b72: fix (providers): Zod is required dependency
2421
+ - Updated dependencies [8e780288]
2422
+ - @ai-sdk/provider@0.0.7
2423
+ - @ai-sdk/provider-utils@0.0.10
2424
+
2425
+ ## 0.0.15
2426
+
2427
+ ### Patch Changes
2428
+
2429
+ - Updated dependencies
2430
+ - @ai-sdk/provider@0.0.6
2431
+ - @ai-sdk/provider-utils@0.0.9
2432
+
2433
+ ## 0.0.14
2434
+
2435
+ ### Patch Changes
2436
+
2437
+ - df47a34: feat (provider/google): add models/gemini-1.5-flash-latest to list of supported models
2438
+
2439
+ ## 0.0.13
2440
+
2441
+ ### Patch Changes
2442
+
2443
+ - 9a7ec8b: feat (provider/google): add token usage information
2444
+
2445
+ ## 0.0.12
2446
+
2447
+ ### Patch Changes
2448
+
2449
+ - Updated dependencies [0f6bc4e]
2450
+ - @ai-sdk/provider@0.0.5
2451
+ - @ai-sdk/provider-utils@0.0.8
2452
+
2453
+ ## 0.0.11
2454
+
2455
+ ### Patch Changes
2456
+
2457
+ - Updated dependencies [325ca55]
2458
+ - @ai-sdk/provider@0.0.4
2459
+ - @ai-sdk/provider-utils@0.0.7
2460
+
2461
+ ## 0.0.10
2462
+
2463
+ ### Patch Changes
2464
+
2465
+ - 20aa9dd: feat (provider/gemini): Add JSON mode for generateObject
2466
+ - Updated dependencies [276f22b]
2467
+ - @ai-sdk/provider-utils@0.0.6
2468
+
2469
+ ## 0.0.9
2470
+
2471
+ ### Patch Changes
2472
+
2473
+ - Updated dependencies [41d5736]
2474
+ - @ai-sdk/provider@0.0.3
2475
+ - @ai-sdk/provider-utils@0.0.5
2476
+
2477
+ ## 0.0.8
2478
+
2479
+ ### Patch Changes
2480
+
2481
+ - Updated dependencies [56ef84a]
2482
+ - @ai-sdk/provider-utils@0.0.4
2483
+
2484
+ ## 0.0.7
2485
+
2486
+ ### Patch Changes
2487
+
2488
+ - 25f3350: ai/core: add support for getting raw response headers.
2489
+ - Updated dependencies
2490
+ - @ai-sdk/provider@0.0.2
2491
+ - @ai-sdk/provider-utils@0.0.3
2492
+
2493
+ ## 0.0.6
2494
+
2495
+ ### Patch Changes
2496
+
2497
+ - Updated dependencies [eb150a6]
2498
+ - @ai-sdk/provider-utils@0.0.2
2499
+ - @ai-sdk/provider@0.0.1
2500
+
2501
+ ## 0.0.5
2502
+
2503
+ ### Patch Changes
2504
+
2505
+ - c6fc35b: Add custom header support.
2506
+
2507
+ ## 0.0.4
2508
+
2509
+ ### Patch Changes
2510
+
2511
+ - ab60b18: Simplified model construction by directly calling provider functions. Add create... functions to create provider instances.
2512
+
2513
+ ## 0.0.3
2514
+
2515
+ ### Patch Changes
2516
+
2517
+ - 587240b: Standardize providers to offer .chat() method
2518
+
2519
+ ## 0.0.2
2520
+
2521
+ ### Patch Changes
2522
+
2523
+ - 2bff460: Fix build for release.
2524
+
2525
+ ## 0.0.1
2526
+
2527
+ ### Patch Changes
2528
+
2529
+ - 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
2530
+ - Updated dependencies [7b8791d]
2531
+ - @ai-sdk/provider-utils@0.0.1