@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 +15 -0
- package/dist/index.d.mts +8 -11
- package/dist/index.d.ts +8 -11
- package/dist/index.js +248 -230
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +158 -135
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +19 -14
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +19 -14
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/convert-json-schema-to-openapi-schema.ts +11 -1
- package/src/google-generative-ai-embedding-options.ts +15 -14
- package/src/google-generative-ai-image-model.ts +1 -1
- package/src/google-generative-ai-language-model.ts +43 -40
- package/src/google-generative-ai-video-model.ts +30 -26
- package/src/tool/file-search.ts +33 -30
- package/src/tool/google-search.ts +19 -18
- package/src/transcription/google-transcription-model-options.ts +40 -31
- package/src/transcription/google-transcription-model.ts +37 -30
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:
|
|
469
|
-
languageCodes
|
|
470
|
-
customVocabulary
|
|
471
|
-
wordTimestamp
|
|
472
|
-
diarization
|
|
473
|
-
mode
|
|
474
|
-
|
|
475
|
-
|
|
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:
|
|
469
|
-
languageCodes
|
|
470
|
-
customVocabulary
|
|
471
|
-
wordTimestamp
|
|
472
|
-
diarization
|
|
473
|
-
mode
|
|
474
|
-
|
|
475
|
-
|
|
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;
|