@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.
@@ -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 () => {
@@ -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 () => {
@@ -135,6 +135,13 @@ You can use the following optional settings to customize the provider instance:
135
135
  Optional. Base URL for the Google Vertex API calls e.g. to use proxy servers. By default, it is constructed using the location and project:
136
136
  `https://${location}-aiplatform.googleapis.com/v1/projects/${project}/locations/${location}/publishers/google`
137
137
 
138
+ - **toolResultDownloads** _object_
139
+
140
+ Settings for downloading remote files in tool results before sending them to Vertex as inline data.
141
+ - **maxBytes** _number_
142
+
143
+ Maximum size in bytes for each downloaded file. Defaults to 7 MiB.
144
+
138
145
  <a id="google-vertex-edge-runtime"></a>
139
146
  #### Edge Runtime
140
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.79",
3
+ "version": "5.0.81",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -71,11 +71,11 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@ai-sdk/anthropic": "4.0.52",
75
- "@ai-sdk/google": "4.0.67",
76
- "@ai-sdk/openai-compatible": "3.0.47",
77
- "@ai-sdk/provider": "4.0.13",
78
- "@ai-sdk/provider-utils": "5.0.39",
74
+ "@ai-sdk/anthropic": "4.0.53",
75
+ "@ai-sdk/google": "4.0.69",
76
+ "@ai-sdk/openai-compatible": "3.0.48",
77
+ "@ai-sdk/provider": "4.0.14",
78
+ "@ai-sdk/provider-utils": "5.0.40",
79
79
  "google-auth-library": "^10.6.2"
80
80
  },
81
81
  "devDependencies": {
@@ -193,6 +193,17 @@ export interface GoogleVertexProviderSettings {
193
193
  * `ws` package in Node.js, which Vertex's OAuth Bearer header requires).
194
194
  */
195
195
  webSocket?: WebSocketConstructor;
196
+
197
+ /**
198
+ * Settings for downloading remote files in tool results before sending them
199
+ * to Vertex as inline data.
200
+ */
201
+ toolResultDownloads?: {
202
+ /**
203
+ * Maximum size in bytes for each downloaded file. Defaults to 7 MiB.
204
+ */
205
+ maxBytes?: number;
206
+ };
196
207
  }
197
208
 
198
209
  /**
@@ -294,6 +305,9 @@ export function createGoogleVertex(
294
305
  /^gs:\/\/.*$/,
295
306
  ],
296
307
  }),
308
+ downloadToolResultFiles: {
309
+ maxBytes: options.toolResultDownloads?.maxBytes ?? 7 * 1024 * 1024,
310
+ },
297
311
  });
298
312
  };
299
313