@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.
package/dist/index.mjs CHANGED
@@ -230,7 +230,7 @@ function convertOpenAIChatUsage(usage) {
230
230
  },
231
231
  outputTokens: {
232
232
  total: completionTokens,
233
- text: completionTokens - reasoningTokens,
233
+ text: Math.max(0, completionTokens - reasoningTokens),
234
234
  reasoning: reasoningTokens
235
235
  },
236
236
  raw: usage
@@ -7940,7 +7940,7 @@ var OpenAITranscriptionModel = class {
7940
7940
  };
7941
7941
 
7942
7942
  // src/version.ts
7943
- var VERSION = true ? "3.0.99" : "0.0.0-test";
7943
+ var VERSION = true ? "3.0.101" : "0.0.0-test";
7944
7944
 
7945
7945
  // src/openai-provider.ts
7946
7946
  function createOpenAI(options = {}) {