@ai-sdk/openai 3.0.100 → 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/CHANGELOG.md +8 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/chat/convert-openai-chat-usage.ts +1 -1
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.
|
|
7943
|
+
var VERSION = true ? "3.0.101" : "0.0.0-test";
|
|
7944
7944
|
|
|
7945
7945
|
// src/openai-provider.ts
|
|
7946
7946
|
function createOpenAI(options = {}) {
|