@ai-sdk/google 4.0.77 → 4.0.79

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.79
4
+
5
+ ### Patch Changes
6
+
7
+ - fe07867: Fix Google `embedMany` calls with more than 100 values by keeping per-value multimodal content aligned across automatic batches, including text-only entries. Validate content length before sending requests and validate each batch's provider options after middleware transforms them.
8
+ - 2db5621: fix(google): preserve code execution parts when replaying messages
9
+ - 2693319: Add Gemini 3.8 TTS support with structured speech metadata and per-turn speaker and style controls for prebuilt voices. Preserve native WAV responses without adding a second header, support explicit raw PCM, mu-law, and A-law output, and identify headerless audio formats correctly. Add the Gemini 3.8 speech model IDs to Google and Gateway types.
10
+
11
+ Share transcript and custom-voice inspection through the Google provider internal export, and reject empty speech transcripts before sending a request. Default newer and custom model IDs to structured speech while preserving the legacy format for Gemini 2.5 and 3.1.
12
+
13
+ - 771e74b: chore: enable dead code lint rules
14
+ - Updated dependencies [fe07867]
15
+ - Updated dependencies [a4b0940]
16
+ - Updated dependencies [771e74b]
17
+ - @ai-sdk/provider-utils@5.0.47
18
+
19
+ ## 4.0.78
20
+
21
+ ### Patch Changes
22
+
23
+ - ffb0e76: fix(provider): preserve opaque file URI strings for provider serialization
24
+ - Updated dependencies [ffb0e76]
25
+ - @ai-sdk/provider@4.0.18
26
+ - @ai-sdk/provider-utils@5.0.46
27
+
3
28
  ## 4.0.77
4
29
 
5
30
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -290,8 +290,19 @@ type GoogleVideoModelOptions = {
290
290
 
291
291
  type GoogleVideoModelId = 'veo-3.1-fast-generate-preview' | 'veo-3.1-generate-preview' | 'veo-3.1-generate' | 'veo-3.1-lite-generate-preview' | 'veo-3.0-generate-001' | 'veo-3.0-fast-generate-001' | 'veo-2.0-generate-001' | (string & {});
292
292
 
293
- type GoogleSpeechModelId = 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro-preview-tts' | 'gemini-3.1-flash-tts-preview' | (string & {});
293
+ type GoogleSpeechModelId = 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro-preview-tts' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.8-flash-tts' | 'gemini-3.8-flash-lite-tts' | (string & {});
294
294
  declare const googleSpeechProviderOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
295
+ speechMetadata?: {
296
+ speaker?: string | undefined;
297
+ style?: string | undefined;
298
+ } | undefined;
299
+ turns?: {
300
+ text: string;
301
+ speechMetadata?: {
302
+ speaker?: string | undefined;
303
+ style?: string | undefined;
304
+ } | undefined;
305
+ }[] | undefined;
295
306
  multiSpeakerVoiceConfig?: {
296
307
  speakerVoiceConfigs: {
297
308
  speaker: string;
@@ -299,6 +310,7 @@ declare const googleSpeechProviderOptionsSchema: _ai_sdk_provider_utils.LazySche
299
310
  prebuiltVoiceConfig: {
300
311
  voiceName: string;
301
312
  };
313
+ voice?: undefined;
302
314
  };
303
315
  }[];
304
316
  } | undefined;