@ai-sdk/xai 3.0.5 → 3.0.6
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/CHANGELOG.md
CHANGED
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,
|
|
170
|
+
text: usage.completion_tokens - reasoningTokens,
|
|
171
171
|
reasoning: reasoningTokens
|
|
172
172
|
},
|
|
173
173
|
raw: usage
|
|
@@ -2046,7 +2046,7 @@ var xaiTools = {
|
|
|
2046
2046
|
};
|
|
2047
2047
|
|
|
2048
2048
|
// src/version.ts
|
|
2049
|
-
var VERSION = true ? "3.0.
|
|
2049
|
+
var VERSION = true ? "3.0.6" : "0.0.0-test";
|
|
2050
2050
|
|
|
2051
2051
|
// src/xai-provider.ts
|
|
2052
2052
|
var xaiErrorStructure = {
|