ai 6.0.229 → 6.0.230
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 +9 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +1 -1
- package/docs/07-reference/01-ai-sdk-core/20-tool.mdx +1 -1
- package/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +1 -1
- package/package.json +3 -3
- package/src/generate-text/generate-text.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.230
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 19093fd: fix(ai): call `onInputStart` before `onInputAvailable` during non-streaming tool calls
|
|
8
|
+
- Updated dependencies [19093fd]
|
|
9
|
+
- @ai-sdk/provider-utils@4.0.40
|
|
10
|
+
- @ai-sdk/gateway@3.0.153
|
|
11
|
+
|
|
3
12
|
## 6.0.229
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1282,7 +1282,7 @@ function detectMediaType({
|
|
|
1282
1282
|
var import_provider_utils3 = require("@ai-sdk/provider-utils");
|
|
1283
1283
|
|
|
1284
1284
|
// src/version.ts
|
|
1285
|
-
var VERSION = true ? "6.0.
|
|
1285
|
+
var VERSION = true ? "6.0.230" : "0.0.0-test";
|
|
1286
1286
|
|
|
1287
1287
|
// src/util/download/download.ts
|
|
1288
1288
|
var download = async ({
|
|
@@ -4849,7 +4849,15 @@ async function generateText({
|
|
|
4849
4849
|
if (tool2 == null) {
|
|
4850
4850
|
continue;
|
|
4851
4851
|
}
|
|
4852
|
-
if (
|
|
4852
|
+
if (tool2.onInputStart != null) {
|
|
4853
|
+
await tool2.onInputStart({
|
|
4854
|
+
toolCallId: toolCall.toolCallId,
|
|
4855
|
+
messages: stepInputMessages,
|
|
4856
|
+
abortSignal: mergedAbortSignal,
|
|
4857
|
+
experimental_context
|
|
4858
|
+
});
|
|
4859
|
+
}
|
|
4860
|
+
if (tool2.onInputAvailable != null) {
|
|
4853
4861
|
await tool2.onInputAvailable({
|
|
4854
4862
|
input: toolCall.input,
|
|
4855
4863
|
toolCallId: toolCall.toolCallId,
|