@ai-sdk/xai 3.0.50 → 3.0.51
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 +6 -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 +1 -1
- package/src/convert-xai-chat-usage.ts +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -168,8 +168,8 @@ function convertXaiChatUsage(usage) {
|
|
|
168
168
|
cacheWrite: void 0
|
|
169
169
|
},
|
|
170
170
|
outputTokens: {
|
|
171
|
-
total: usage.completion_tokens,
|
|
172
|
-
text: usage.completion_tokens
|
|
171
|
+
total: usage.completion_tokens + reasoningTokens,
|
|
172
|
+
text: usage.completion_tokens,
|
|
173
173
|
reasoning: reasoningTokens
|
|
174
174
|
},
|
|
175
175
|
raw: usage
|
|
@@ -2516,7 +2516,7 @@ var xaiTools = {
|
|
|
2516
2516
|
};
|
|
2517
2517
|
|
|
2518
2518
|
// src/version.ts
|
|
2519
|
-
var VERSION = true ? "3.0.
|
|
2519
|
+
var VERSION = true ? "3.0.51" : "0.0.0-test";
|
|
2520
2520
|
|
|
2521
2521
|
// src/xai-provider.ts
|
|
2522
2522
|
var xaiErrorStructure = {
|