@ai-sdk/google-vertex 5.0.80 → 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/dist/index.d.ts CHANGED
@@ -213,6 +213,16 @@ interface GoogleVertexProviderSettings$1 {
213
213
  * `ws` package in Node.js, which Vertex's OAuth Bearer header requires).
214
214
  */
215
215
  webSocket?: WebSocketConstructor;
216
+ /**
217
+ * Settings for downloading remote files in tool results before sending them
218
+ * to Vertex as inline data.
219
+ */
220
+ toolResultDownloads?: {
221
+ /**
222
+ * Maximum size in bytes for each downloaded file. Defaults to 7 MiB.
223
+ */
224
+ maxBytes?: number;
225
+ };
216
226
  }
217
227
 
218
228
  interface GoogleVertexProviderSettings extends GoogleVertexProviderSettings$1 {
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  } from "@ai-sdk/provider-utils";
34
34
 
35
35
  // src/version.ts
36
- var VERSION = true ? "5.0.80" : "0.0.0-test";
36
+ var VERSION = true ? "5.0.81" : "0.0.0-test";
37
37
 
38
38
  // src/google-vertex-embedding-model.ts
39
39
  import {
@@ -1692,7 +1692,7 @@ function createGoogleVertex(options = {}) {
1692
1692
  };
1693
1693
  };
1694
1694
  const createChatModel = (modelId) => {
1695
- var _a;
1695
+ var _a, _b, _c;
1696
1696
  const endpoint = isEndpointModelId(modelId);
1697
1697
  if (endpoint && apiKey) {
1698
1698
  throw new Error(
@@ -1709,7 +1709,10 @@ function createGoogleVertex(options = {}) {
1709
1709
  // Google Cloud Storage URLs:
1710
1710
  /^gs:\/\/.*$/
1711
1711
  ]
1712
- })
1712
+ }),
1713
+ downloadToolResultFiles: {
1714
+ maxBytes: (_c = (_b = options.toolResultDownloads) == null ? void 0 : _b.maxBytes) != null ? _c : 7 * 1024 * 1024
1715
+ }
1713
1716
  });
1714
1717
  };
1715
1718
  const createInteractionsModel = (modelIdOrAgent) => {