@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/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 + reasoningTokens,
153
- text: usage.completion_tokens,
152
+ total: usage.completion_tokens,
153
+ text: usage.completion_tokens - reasoningTokens,
154
154
  reasoning: reasoningTokens
155
155
  },
156
156
  raw: usage
@@ -2047,7 +2047,7 @@ var xaiTools = {
2047
2047
  };
2048
2048
 
2049
2049
  // src/version.ts
2050
- var VERSION = true ? "3.0.5" : "0.0.0-test";
2050
+ var VERSION = true ? "3.0.6" : "0.0.0-test";
2051
2051
 
2052
2052
  // src/xai-provider.ts
2053
2053
  var xaiErrorStructure = {