@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/dist/index.mjs
CHANGED
|
@@ -149,8 +149,8 @@ function convertXaiChatUsage(usage) {
|
|
|
149
149
|
cacheWrite: void 0
|
|
150
150
|
},
|
|
151
151
|
outputTokens: {
|
|
152
|
-
total: usage.completion_tokens,
|
|
153
|
-
text: usage.completion_tokens
|
|
152
|
+
total: usage.completion_tokens + reasoningTokens,
|
|
153
|
+
text: usage.completion_tokens,
|
|
154
154
|
reasoning: reasoningTokens
|
|
155
155
|
},
|
|
156
156
|
raw: usage
|
|
@@ -2029,7 +2029,7 @@ var xaiTools = {
|
|
|
2029
2029
|
};
|
|
2030
2030
|
|
|
2031
2031
|
// src/version.ts
|
|
2032
|
-
var VERSION = true ? "3.0.
|
|
2032
|
+
var VERSION = true ? "3.0.3" : "0.0.0-test";
|
|
2033
2033
|
|
|
2034
2034
|
// src/xai-provider.ts
|
|
2035
2035
|
var xaiErrorStructure = {
|