@ai-sdk/xai 3.0.1 → 3.0.3
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 +16 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @ai-sdk/xai
|
|
2
2
|
|
|
3
|
+
## 3.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 863d34f: fix: trigger release to update `@latest`
|
|
8
|
+
- Updated dependencies [863d34f]
|
|
9
|
+
- @ai-sdk/openai-compatible@2.0.2
|
|
10
|
+
- @ai-sdk/provider@3.0.1
|
|
11
|
+
- @ai-sdk/provider-utils@4.0.2
|
|
12
|
+
|
|
13
|
+
## 3.0.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 2761f04: feat (provider/xai): fix chat usage output token computation
|
|
18
|
+
|
|
3
19
|
## 3.0.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -166,8 +166,8 @@ function convertXaiChatUsage(usage) {
|
|
|
166
166
|
cacheWrite: void 0
|
|
167
167
|
},
|
|
168
168
|
outputTokens: {
|
|
169
|
-
total: usage.completion_tokens,
|
|
170
|
-
text: usage.completion_tokens
|
|
169
|
+
total: usage.completion_tokens + reasoningTokens,
|
|
170
|
+
text: usage.completion_tokens,
|
|
171
171
|
reasoning: reasoningTokens
|
|
172
172
|
},
|
|
173
173
|
raw: usage
|
|
@@ -2028,7 +2028,7 @@ var xaiTools = {
|
|
|
2028
2028
|
};
|
|
2029
2029
|
|
|
2030
2030
|
// src/version.ts
|
|
2031
|
-
var VERSION = true ? "3.0.
|
|
2031
|
+
var VERSION = true ? "3.0.3" : "0.0.0-test";
|
|
2032
2032
|
|
|
2033
2033
|
// src/xai-provider.ts
|
|
2034
2034
|
var xaiErrorStructure = {
|