@ai-sdk/google 3.0.74 → 3.0.75
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 +6 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +478 -312
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +478 -312
- package/dist/index.mjs.map +1 -1
- package/docs/15-google-generative-ai.mdx +72 -16
- package/package.json +1 -1
- package/src/interactions/build-google-interactions-stream-transform.ts +285 -154
- package/src/interactions/convert-to-google-interactions-input.ts +57 -133
- package/src/interactions/extract-google-interactions-sources.ts +3 -3
- package/src/interactions/google-interactions-api.ts +179 -115
- package/src/interactions/google-interactions-language-model-options.ts +61 -0
- package/src/interactions/google-interactions-language-model.ts +100 -38
- package/src/interactions/google-interactions-prompt.ts +189 -114
- package/src/interactions/map-google-interactions-finish-reason.ts +3 -5
- package/src/interactions/parse-google-interactions-outputs.ts +80 -74
- package/src/interactions/prepare-google-interactions-tools.ts +1 -1
- package/src/interactions/stream-google-interactions.ts +1 -1
- package/src/interactions/synthesize-google-interactions-agent-stream.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -292,6 +292,22 @@ declare const googleInteractionsLanguageModelOptions: _ai_sdk_provider_utils.Laz
|
|
|
292
292
|
} | null | undefined;
|
|
293
293
|
thinkingLevel?: "minimal" | "low" | "medium" | "high" | null | undefined;
|
|
294
294
|
thinkingSummaries?: "auto" | "none" | null | undefined;
|
|
295
|
+
responseFormat?: ({
|
|
296
|
+
[x: string]: unknown;
|
|
297
|
+
type: "text";
|
|
298
|
+
mimeType?: string | null | undefined;
|
|
299
|
+
schema?: unknown;
|
|
300
|
+
} | {
|
|
301
|
+
[x: string]: unknown;
|
|
302
|
+
type: "image";
|
|
303
|
+
mimeType?: string | null | undefined;
|
|
304
|
+
aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | "1:8" | "8:1" | "1:4" | "4:1" | null | undefined;
|
|
305
|
+
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
[x: string]: unknown;
|
|
308
|
+
type: "audio";
|
|
309
|
+
mimeType?: string | null | undefined;
|
|
310
|
+
})[] | null | undefined;
|
|
295
311
|
imageConfig?: {
|
|
296
312
|
aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | "1:8" | "8:1" | "1:4" | "4:1" | null | undefined;
|
|
297
313
|
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -292,6 +292,22 @@ declare const googleInteractionsLanguageModelOptions: _ai_sdk_provider_utils.Laz
|
|
|
292
292
|
} | null | undefined;
|
|
293
293
|
thinkingLevel?: "minimal" | "low" | "medium" | "high" | null | undefined;
|
|
294
294
|
thinkingSummaries?: "auto" | "none" | null | undefined;
|
|
295
|
+
responseFormat?: ({
|
|
296
|
+
[x: string]: unknown;
|
|
297
|
+
type: "text";
|
|
298
|
+
mimeType?: string | null | undefined;
|
|
299
|
+
schema?: unknown;
|
|
300
|
+
} | {
|
|
301
|
+
[x: string]: unknown;
|
|
302
|
+
type: "image";
|
|
303
|
+
mimeType?: string | null | undefined;
|
|
304
|
+
aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | "1:8" | "8:1" | "1:4" | "4:1" | null | undefined;
|
|
305
|
+
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
[x: string]: unknown;
|
|
308
|
+
type: "audio";
|
|
309
|
+
mimeType?: string | null | undefined;
|
|
310
|
+
})[] | null | undefined;
|
|
295
311
|
imageConfig?: {
|
|
296
312
|
aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | "1:8" | "8:1" | "1:4" | "4:1" | null | undefined;
|
|
297
313
|
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|