@ai-sdk/google 4.0.0-canary.63 → 4.0.0-canary.65
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 +12 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +510 -335
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +43 -28
- package/dist/internal/index.js.map +1 -1
- package/docs/15-google.mdx +72 -16
- package/package.json +1 -1
- package/src/convert-to-google-messages.ts +20 -2
- package/src/google-language-model.ts +5 -4
- package/src/google-prompt.ts +5 -1
- 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,17 @@
|
|
|
1
1
|
# @ai-sdk/google
|
|
2
2
|
|
|
3
|
+
## 4.0.0-canary.65
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e825f3: feat(google): update Interactions API implementation to cater for upstream breaking changes coming May 26
|
|
8
|
+
|
|
9
|
+
## 4.0.0-canary.64
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 41da50c: fix(provider/google): support `functionCall.id` when returned by Gemini API and provide matching `functionResponse.id`
|
|
14
|
+
|
|
3
15
|
## 4.0.0-canary.63
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
49
49
|
content?: Record<string, never> | {
|
|
50
50
|
parts?: ({
|
|
51
51
|
functionCall: {
|
|
52
|
+
id?: string | null | undefined;
|
|
52
53
|
name?: string | null | undefined;
|
|
53
54
|
args?: unknown;
|
|
54
55
|
partialArgs?: {
|
|
@@ -290,6 +291,22 @@ declare const googleInteractionsLanguageModelOptions: _ai_sdk_provider_utils.Laz
|
|
|
290
291
|
} | null | undefined;
|
|
291
292
|
thinkingLevel?: "minimal" | "low" | "medium" | "high" | null | undefined;
|
|
292
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;
|
|
293
310
|
imageConfig?: {
|
|
294
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;
|
|
295
312
|
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|