@ai-sdk/xai 3.0.130 → 3.0.132
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 +17 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/xai-chat-language-model.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ai-sdk/xai
|
|
2
2
|
|
|
3
|
+
## 3.0.132
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4bd2599: fix(deepseek): preserve reasoning streams across empty tool-call deltas
|
|
8
|
+
|
|
9
|
+
## 3.0.131
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [f3c1980]
|
|
14
|
+
- Updated dependencies [1336501]
|
|
15
|
+
- Updated dependencies [1a4dbb1]
|
|
16
|
+
- @ai-sdk/openai-compatible@2.0.75
|
|
17
|
+
- @ai-sdk/provider@3.0.16
|
|
18
|
+
- @ai-sdk/provider-utils@4.0.51
|
|
19
|
+
|
|
3
20
|
## 3.0.130
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -815,7 +815,7 @@ var XaiChatLanguageModel = class {
|
|
|
815
815
|
delta: delta.reasoning_content
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
|
-
if (delta.tool_calls != null) {
|
|
818
|
+
if (delta.tool_calls != null && delta.tool_calls.length > 0) {
|
|
819
819
|
if (activeReasoningBlockId != null && !contentBlocks[activeReasoningBlockId].ended) {
|
|
820
820
|
controller.enqueue({
|
|
821
821
|
type: "reasoning-end",
|
|
@@ -3043,7 +3043,7 @@ var xaiTools = {
|
|
|
3043
3043
|
};
|
|
3044
3044
|
|
|
3045
3045
|
// src/version.ts
|
|
3046
|
-
var VERSION = true ? "3.0.
|
|
3046
|
+
var VERSION = true ? "3.0.132" : "0.0.0-test";
|
|
3047
3047
|
|
|
3048
3048
|
// src/xai-video-model.ts
|
|
3049
3049
|
var import_provider6 = require("@ai-sdk/provider");
|