@ai-sdk/google 3.0.136 → 3.0.138

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,20 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.138
4
+
5
+ ### Patch Changes
6
+
7
+ - 2b59d8a: fix(google): convert `type: [X, "null"]` to a plain nullable node so `items` and `format` beside it stay valid for Gemini
8
+
9
+ ## 3.0.137
10
+
11
+ ### Patch Changes
12
+
13
+ - f536aa8: Defer validation schema construction until first use to reduce provider import time.
14
+ - Updated dependencies [1183cc4]
15
+ - Updated dependencies [d726591]
16
+ - @ai-sdk/provider-utils@4.0.62
17
+
3
18
  ## 3.0.136
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -465,17 +465,14 @@ type GoogleTranscriptionModelId = 'gemini-3.5-transcribe' | 'gemini-3.5-transcri
465
465
  * The live variant (`gemini-3.5-transcribe-live`) requires streaming
466
466
  * transcription, which is only available in AI SDK v7.
467
467
  */
468
- declare const googleTranscriptionModelOptions: z.ZodObject<{
469
- languageCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
470
- customVocabulary: z.ZodOptional<z.ZodArray<z.ZodString>>;
471
- wordTimestamp: z.ZodOptional<z.ZodBoolean>;
472
- diarization: z.ZodOptional<z.ZodBoolean>;
473
- mode: z.ZodOptional<z.ZodEnum<{
474
- SMART: "SMART";
475
- VERBATIM: "VERBATIM";
476
- }>>;
477
- }, z.core.$strip>;
478
- type GoogleTranscriptionModelOptions = z.infer<typeof googleTranscriptionModelOptions>;
468
+ declare const googleTranscriptionModelOptions: _ai_sdk_provider_utils.LazySchema<{
469
+ languageCodes?: string[] | undefined;
470
+ customVocabulary?: string[] | undefined;
471
+ wordTimestamp?: boolean | undefined;
472
+ diarization?: boolean | undefined;
473
+ mode?: "SMART" | "VERBATIM" | undefined;
474
+ }>;
475
+ type GoogleTranscriptionModelOptions = InferSchema<typeof googleTranscriptionModelOptions>;
479
476
 
480
477
  interface GoogleTranscriptionModelConfig {
481
478
  provider: string;
package/dist/index.d.ts CHANGED
@@ -465,17 +465,14 @@ type GoogleTranscriptionModelId = 'gemini-3.5-transcribe' | 'gemini-3.5-transcri
465
465
  * The live variant (`gemini-3.5-transcribe-live`) requires streaming
466
466
  * transcription, which is only available in AI SDK v7.
467
467
  */
468
- declare const googleTranscriptionModelOptions: z.ZodObject<{
469
- languageCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
470
- customVocabulary: z.ZodOptional<z.ZodArray<z.ZodString>>;
471
- wordTimestamp: z.ZodOptional<z.ZodBoolean>;
472
- diarization: z.ZodOptional<z.ZodBoolean>;
473
- mode: z.ZodOptional<z.ZodEnum<{
474
- SMART: "SMART";
475
- VERBATIM: "VERBATIM";
476
- }>>;
477
- }, z.core.$strip>;
478
- type GoogleTranscriptionModelOptions = z.infer<typeof googleTranscriptionModelOptions>;
468
+ declare const googleTranscriptionModelOptions: _ai_sdk_provider_utils.LazySchema<{
469
+ languageCodes?: string[] | undefined;
470
+ customVocabulary?: string[] | undefined;
471
+ wordTimestamp?: boolean | undefined;
472
+ diarization?: boolean | undefined;
473
+ mode?: "SMART" | "VERBATIM" | undefined;
474
+ }>;
475
+ type GoogleTranscriptionModelOptions = InferSchema<typeof googleTranscriptionModelOptions>;
479
476
 
480
477
  interface GoogleTranscriptionModelConfig {
481
478
  provider: string;