@ai-sdk/google 4.0.0-canary.54 → 4.0.0-canary.55

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,14 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.0-canary.55
4
+
5
+ ### Patch Changes
6
+
7
+ - ebbb0f2: fix(provider/google): fix lack of image consistency when using Interactions API in stateless mode
8
+ - Updated dependencies [69254e0]
9
+ - Updated dependencies [3015fc3]
10
+ - @ai-sdk/provider-utils@5.0.0-canary.34
11
+
3
12
  ## 4.0.0-canary.54
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "4.0.0-canary.54" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.0-canary.55" : "0.0.0-test";
11
11
 
12
12
  // src/google-embedding-model.ts
13
13
  import {
@@ -4210,6 +4210,15 @@ function convertToGoogleInteractionsInput({
4210
4210
  ...signature != null ? { signature } : {},
4211
4211
  summary: part.text.length > 0 ? [{ type: "text", text: part.text }] : void 0
4212
4212
  });
4213
+ } else if (part.type === "file") {
4214
+ const fileBlock = convertFilePartToContent({
4215
+ part,
4216
+ warnings,
4217
+ mediaResolution
4218
+ });
4219
+ if (fileBlock != null) {
4220
+ content.push(fileBlock);
4221
+ }
4213
4222
  } else if (part.type === "tool-call") {
4214
4223
  const signature = (_d = (_c = part.providerOptions) == null ? void 0 : _c.google) == null ? void 0 : _d.signature;
4215
4224
  const args = typeof part.input === "string" ? safeParseToolArgs(part.input) : (_e = part.input) != null ? _e : {};