@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/CHANGELOG.md +8 -0
- package/dist/anthropic/edge/index.js +1 -1
- package/dist/edge/index.d.ts +10 -0
- package/dist/edge/index.js +6 -3
- package/dist/edge/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/maas/edge/index.js +1 -1
- package/dist/xai/edge/index.js +1 -1
- package/docs/16-google-vertex.mdx +7 -0
- package/package.json +2 -2
- package/src/google-vertex-provider-base.ts +14 -0
package/dist/maas/edge/index.js
CHANGED
package/dist/xai/edge/index.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "5.0.81",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@ai-sdk/anthropic": "4.0.53",
|
|
75
|
-
"@ai-sdk/google": "4.0.
|
|
75
|
+
"@ai-sdk/google": "4.0.69",
|
|
76
76
|
"@ai-sdk/openai-compatible": "3.0.48",
|
|
77
77
|
"@ai-sdk/provider": "4.0.14",
|
|
78
78
|
"@ai-sdk/provider-utils": "5.0.40",
|
|
@@ -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
|
|