ai 7.0.105 → 7.0.107
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 +42 -0
- package/dist/index.js +278 -88
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +15 -3
- package/dist/internal/index.js +153 -46
- package/dist/internal/index.js.map +1 -1
- package/docs/03-ai-sdk-core/19-tool-search.mdx +4 -2
- package/docs/07-reference/01-ai-sdk-core/23-tool-search.mdx +3 -2
- package/package.json +11 -11
- package/src/batch/batch.ts +1 -0
- package/src/generate-object/generate-object.ts +1 -0
- package/src/generate-object/stream-object.ts +1 -0
- package/src/generate-speech/generate-speech.ts +44 -4
- package/src/generate-text/generate-text.ts +28 -15
- package/src/generate-text/invoke-tool-callbacks-from-stream.ts +68 -16
- package/src/generate-text/prune-messages.ts +13 -0
- package/src/generate-text/stream-language-model-call.ts +1 -0
- package/src/generate-text/stream-text.ts +29 -12
- package/src/generate-video/generate-video.ts +61 -10
- package/src/middleware/extract-json-middleware.ts +35 -9
- package/src/middleware/simulate-streaming-middleware.ts +7 -1
- package/src/middleware/wrap-provider.ts +2 -0
- package/src/prompt/convert-to-language-model-prompt.ts +4 -2
- package/src/prompt/create-tool-model-output.ts +20 -11
- package/src/test/mock-server-response.ts +19 -3
- package/src/text-stream/pipe-text-stream-to-response.ts +3 -5
- package/src/ui/http-chat-transport.ts +12 -2
- package/src/ui/last-assistant-message-is-complete-with-approval-responses.ts +1 -1
- package/src/ui/last-assistant-message-is-complete-with-tool-calls.ts +2 -1
- package/src/ui-message-stream/pipe-ui-message-stream-to-response.ts +1 -3
- package/src/ui-message-stream/read-ui-message-stream.ts +13 -4
- package/src/util/data-url.ts +13 -1
- package/src/util/download/download-function.ts +5 -2
- package/src/util/write-to-server-response.ts +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 7.0.107
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 79681c4: fix(ai): preserve provider file and skill upload APIs in wrapProvider
|
|
8
|
+
- 98c7275: fix(ai): preserve query parameters in chat reconnect URLs
|
|
9
|
+
- a105059: fix(workflow): support deferred tool discovery in WorkflowAgent
|
|
10
|
+
- 31532f3: fix(ai): prevent preliminary tool outputs from completing chats
|
|
11
|
+
- e61cbd8: fix(ai): preserve raw speech audio format metadata
|
|
12
|
+
- 8ade040: fix(ai): pass tool-specific context to input callbacks
|
|
13
|
+
- 970a01e: fix(ai): enforce polling timeouts for in-flight video status requests
|
|
14
|
+
- 85539c5: fix(ai): preserve multiple Set-Cookie headers in Node stream responses
|
|
15
|
+
- 611d301: fix(ai): prevent duplicate content types in chat transport requests
|
|
16
|
+
- c415657: fix(ai): decode base64 text data URLs using their declared charset
|
|
17
|
+
- Updated dependencies [2973485]
|
|
18
|
+
- Updated dependencies [a4db5ea]
|
|
19
|
+
- Updated dependencies [2937ea2]
|
|
20
|
+
- @ai-sdk/provider-utils@5.0.45
|
|
21
|
+
- @ai-sdk/gateway@4.0.87
|
|
22
|
+
|
|
23
|
+
## 7.0.106
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 4775577: fix(ai): preserve provider metadata when simulating text streams
|
|
28
|
+
- 6696728: fix(ai): report the prepareStep model in streamed step results
|
|
29
|
+
- 09516a1: fix(ai): prevent unhandled rejections when UI message stream reading stops early
|
|
30
|
+
- 1aef01e: fix(ai): preserve prototype-named properties in serialized tool outputs
|
|
31
|
+
- 9c1ea74: fix(ai): close telemetry spans when provider response streams fail
|
|
32
|
+
- 107343a: fix(ai): use the prepareStep-selected model for streamed response metadata fallbacks
|
|
33
|
+
- 03c3e33: fix(ai): preserve tool calls required by retained pending approvals
|
|
34
|
+
- 5d42ebd: fix(ai): skip input available callbacks for invalid streamed tool calls
|
|
35
|
+
- 4a67783: fix(ai): cancel prompt attachment downloads when model calls are aborted or time out
|
|
36
|
+
- 1058ed5: fix(ai): strip streamed JSON fences before arbitrary trailing whitespace
|
|
37
|
+
- 84f5d1b: fix(ai): stream null and empty string JSON partial outputs
|
|
38
|
+
- 2d53a5d: fix(ai): prevent onEnd after aborting a multi-step text stream
|
|
39
|
+
- 2a5ed55: fix(ai): stream structured output from the final tool-loop step
|
|
40
|
+
- Updated dependencies [4fdf51e]
|
|
41
|
+
- Updated dependencies [0455398]
|
|
42
|
+
- @ai-sdk/gateway@4.0.86
|
|
43
|
+
- @ai-sdk/provider-utils@5.0.44
|
|
44
|
+
|
|
3
45
|
## 7.0.105
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|