@ai-sdk/google-vertex 5.0.79 → 5.0.81

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,28 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.81
4
+
5
+ ### Patch Changes
6
+
7
+ - f88c7dc: fix(vertex): download tool result file URLs
8
+ - Updated dependencies [f88c7dc]
9
+ - @ai-sdk/google@4.0.69
10
+
11
+ ## 5.0.80
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [5ec21a6]
16
+ - Updated dependencies [7469a3b]
17
+ - Updated dependencies [e4292e7]
18
+ - Updated dependencies [813bb36]
19
+ - Updated dependencies [c43e4b7]
20
+ - @ai-sdk/anthropic@4.0.53
21
+ - @ai-sdk/google@4.0.68
22
+ - @ai-sdk/provider@4.0.14
23
+ - @ai-sdk/provider-utils@5.0.40
24
+ - @ai-sdk/openai-compatible@3.0.48
25
+
3
26
  ## 5.0.79
4
27
 
5
28
  ### Patch Changes
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.79" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.81" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -170,6 +170,16 @@ interface GoogleVertexProviderSettings$1 {
170
170
  * `ws` package in Node.js, which Vertex's OAuth Bearer header requires).
171
171
  */
172
172
  webSocket?: WebSocketConstructor;
173
+ /**
174
+ * Settings for downloading remote files in tool results before sending them
175
+ * to Vertex as inline data.
176
+ */
177
+ toolResultDownloads?: {
178
+ /**
179
+ * Maximum size in bytes for each downloaded file. Defaults to 7 MiB.
180
+ */
181
+ maxBytes?: number;
182
+ };
173
183
  }
174
184
 
175
185
  interface GoogleCredentials {
@@ -18,7 +18,7 @@ import {
18
18
  } from "@ai-sdk/provider-utils";
19
19
 
20
20
  // src/version.ts
21
- var VERSION = true ? "5.0.79" : "0.0.0-test";
21
+ var VERSION = true ? "5.0.81" : "0.0.0-test";
22
22
 
23
23
  // src/google-vertex-embedding-model.ts
24
24
  import {
@@ -1677,7 +1677,7 @@ function createGoogleVertex(options = {}) {
1677
1677
  };
1678
1678
  };
1679
1679
  const createChatModel = (modelId) => {
1680
- var _a;
1680
+ var _a, _b, _c;
1681
1681
  const endpoint = isEndpointModelId(modelId);
1682
1682
  if (endpoint && apiKey) {
1683
1683
  throw new Error(
@@ -1694,7 +1694,10 @@ function createGoogleVertex(options = {}) {
1694
1694
  // Google Cloud Storage URLs:
1695
1695
  /^gs:\/\/.*$/
1696
1696
  ]
1697
- })
1697
+ }),
1698
+ downloadToolResultFiles: {
1699
+ maxBytes: (_c = (_b = options.toolResultDownloads) == null ? void 0 : _b.maxBytes) != null ? _c : 7 * 1024 * 1024
1700
+ }
1698
1701
  });
1699
1702
  };
1700
1703
  const createInteractionsModel = (modelIdOrAgent) => {