@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 +23 -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 +6 -6
- package/src/google-vertex-provider-base.ts +14 -0
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
|
package/dist/edge/index.d.ts
CHANGED
|
@@ -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 {
|
package/dist/edge/index.js
CHANGED
|
@@ -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.
|
|
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) => {
|