@ai-sdk/google 4.0.0-canary.64 → 4.0.0-canary.67
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 +22 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +467 -307
- package/dist/index.js.map +1 -1
- package/docs/15-google.mdx +72 -16
- package/package.json +7 -7
- package/src/interactions/build-google-interactions-stream-transform.ts +273 -154
- package/src/interactions/convert-to-google-interactions-input.ts +57 -143
- 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 +69 -63
- 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
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @ai-sdk/google
|
|
2
2
|
|
|
3
|
+
## 4.0.0-canary.67
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
8
|
+
- Updated dependencies [7fc6bd6]
|
|
9
|
+
- @ai-sdk/provider-utils@5.0.0-canary.43
|
|
10
|
+
- @ai-sdk/provider@4.0.0-canary.17
|
|
11
|
+
|
|
12
|
+
## 4.0.0-canary.66
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [a6617c5]
|
|
17
|
+
- @ai-sdk/provider-utils@5.0.0-canary.42
|
|
18
|
+
|
|
19
|
+
## 4.0.0-canary.65
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 4e825f3: feat(google): update Interactions API implementation to cater for upstream breaking changes coming May 26
|
|
24
|
+
|
|
3
25
|
## 4.0.0-canary.64
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -291,6 +291,22 @@ declare const googleInteractionsLanguageModelOptions: _ai_sdk_provider_utils.Laz
|
|
|
291
291
|
} | null | undefined;
|
|
292
292
|
thinkingLevel?: "minimal" | "low" | "medium" | "high" | null | undefined;
|
|
293
293
|
thinkingSummaries?: "auto" | "none" | null | undefined;
|
|
294
|
+
responseFormat?: ({
|
|
295
|
+
[x: string]: unknown;
|
|
296
|
+
type: "text";
|
|
297
|
+
mimeType?: string | null | undefined;
|
|
298
|
+
schema?: unknown;
|
|
299
|
+
} | {
|
|
300
|
+
[x: string]: unknown;
|
|
301
|
+
type: "image";
|
|
302
|
+
mimeType?: string | null | undefined;
|
|
303
|
+
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;
|
|
304
|
+
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|
|
305
|
+
} | {
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
type: "audio";
|
|
308
|
+
mimeType?: string | null | undefined;
|
|
309
|
+
})[] | null | undefined;
|
|
294
310
|
imageConfig?: {
|
|
295
311
|
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;
|
|
296
312
|
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|