@depup/ai-sdk__google 4.0.68-depup.0 → 4.0.70-depup.0
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 +25 -0
- package/README.md +2 -2
- package/changes.json +1 -1
- package/dist/index.js +173 -329
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +9 -4
- package/dist/internal/index.js +159 -322
- package/dist/internal/index.js.map +1 -1
- package/package.json +3 -3
- package/src/download-tool-result-files.ts +124 -0
- package/src/google-language-model.ts +32 -13
- package/src/google-prepare-tools.ts +3 -23
- package/src/realtime/google-realtime-event-mapper.ts +24 -3
- package/src/sanitize-response-json-schema.ts +65 -0
- package/src/convert-json-schema-to-openapi-schema.ts +0 -456
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @ai-sdk/google
|
|
2
2
|
|
|
3
|
+
## 4.0.70
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2a32459: fix(google): preserve JSON Schema instead of converting to OpenAPI schema
|
|
8
|
+
- d93e295: fix(google): keep a realtime `functionResponse.response` an object
|
|
9
|
+
|
|
10
|
+
Gemini types that field as a `google.protobuf.Struct`, which accepts an object and
|
|
11
|
+
nothing else. `onToolCall` returns `unknown` and `addToolOutput` takes `unknown`, so a
|
|
12
|
+
string, number, array or `null` tool result reached the wire unwrapped, Gemini closed
|
|
13
|
+
the socket with `1007`, and the close code was dropped on the way back so the
|
|
14
|
+
application saw a plain disconnect. A non-object result is now wrapped under the
|
|
15
|
+
`output` key the field's own docstring prescribes; an object is passed through
|
|
16
|
+
unchanged, as before.
|
|
17
|
+
|
|
18
|
+
An `output` that is not valid JSON no longer becomes `{}`. That branch told the model
|
|
19
|
+
the tool had returned an empty object, with nothing thrown and the socket still up, so
|
|
20
|
+
the answer was wrong with nothing to notice. The text is kept instead.
|
|
21
|
+
|
|
22
|
+
## 4.0.69
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- f88c7dc: fix(vertex): download tool result file URLs
|
|
27
|
+
|
|
3
28
|
## 4.0.68
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/ai-sdk__google
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.70 |
|
|
17
|
+
| Processed | 2026-09-15 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED