ai 6.0.63 → 6.0.65
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 +13 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +2 -2
- package/src/middleware/extract-reasoning-middleware.ts +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.65
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1a74972]
|
|
8
|
+
- @ai-sdk/gateway@3.0.30
|
|
9
|
+
|
|
10
|
+
## 6.0.64
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- ce9daa3: Fixed 'reasoning part reasoning-0 not found' error by ensuring 'reasoning-start' event is emitted for empty thinking blocks (eg. <think></think>)
|
|
15
|
+
|
|
3
16
|
## 6.0.63
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1104,7 +1104,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
|
|
|
1104
1104
|
var import_provider_utils4 = require("@ai-sdk/provider-utils");
|
|
1105
1105
|
|
|
1106
1106
|
// src/version.ts
|
|
1107
|
-
var VERSION = true ? "6.0.
|
|
1107
|
+
var VERSION = true ? "6.0.65" : "0.0.0-test";
|
|
1108
1108
|
|
|
1109
1109
|
// src/util/download/download.ts
|
|
1110
1110
|
var download = async ({ url }) => {
|
|
@@ -10988,6 +10988,12 @@ function extractReasoningMiddleware({
|
|
|
10988
10988
|
startIndex + nextTag.length
|
|
10989
10989
|
);
|
|
10990
10990
|
if (activeExtraction.isReasoning) {
|
|
10991
|
+
if (activeExtraction.isFirstReasoning) {
|
|
10992
|
+
controller.enqueue({
|
|
10993
|
+
type: "reasoning-start",
|
|
10994
|
+
id: `reasoning-${activeExtraction.idCounter}`
|
|
10995
|
+
});
|
|
10996
|
+
}
|
|
10991
10997
|
controller.enqueue({
|
|
10992
10998
|
type: "reasoning-end",
|
|
10993
10999
|
id: `reasoning-${activeExtraction.idCounter++}`
|