@ai-sdk/openai 3.0.99 → 3.0.101

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.
@@ -279,7 +279,7 @@ function convertOpenAIChatUsage(usage) {
279
279
  },
280
280
  outputTokens: {
281
281
  total: completionTokens,
282
- text: completionTokens - reasoningTokens,
282
+ text: Math.max(0, completionTokens - reasoningTokens),
283
283
  reasoning: reasoningTokens
284
284
  },
285
285
  raw: usage