@ai-sdk/openai 3.0.58 → 3.0.60
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 +12 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +2 -2
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +5 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +5 -3
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +1 -0
- package/package.json +1 -1
- package/src/chat/convert-to-openai-chat-messages.ts +1 -1
- package/src/chat/openai-chat-options.ts +2 -0
- package/src/openai-language-model-capabilities.ts +3 -2
- package/src/responses/openai-responses-options.ts +4 -0
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
|
|
|
44
44
|
const supportsFlexProcessing = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
45
45
|
const supportsPriorityProcessing = modelId.startsWith("gpt-4") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-nano") && !modelId.startsWith("gpt-5-chat") && !modelId.startsWith("gpt-5.4-nano") || modelId.startsWith("o3") || modelId.startsWith("o4-mini");
|
|
46
46
|
const isReasoningModel = modelId.startsWith("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
47
|
-
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4");
|
|
47
|
+
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4") || modelId.startsWith("gpt-5.5");
|
|
48
48
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
49
49
|
return {
|
|
50
50
|
supportsFlexProcessing,
|
|
@@ -241,7 +241,7 @@ function convertToOpenAIChatMessages({
|
|
|
241
241
|
}
|
|
242
242
|
messages.push({
|
|
243
243
|
role: "assistant",
|
|
244
|
-
content: text || null,
|
|
244
|
+
content: toolCalls.length > 0 ? text || null : text,
|
|
245
245
|
tool_calls: toolCalls.length > 0 ? toolCalls : void 0
|
|
246
246
|
});
|
|
247
247
|
break;
|
|
@@ -4344,7 +4344,9 @@ var openaiResponsesReasoningModelIds = [
|
|
|
4344
4344
|
"gpt-5.4-nano",
|
|
4345
4345
|
"gpt-5.4-nano-2026-03-17",
|
|
4346
4346
|
"gpt-5.4-pro",
|
|
4347
|
-
"gpt-5.4-pro-2026-03-05"
|
|
4347
|
+
"gpt-5.4-pro-2026-03-05",
|
|
4348
|
+
"gpt-5.5",
|
|
4349
|
+
"gpt-5.5-2026-04-23"
|
|
4348
4350
|
];
|
|
4349
4351
|
var openaiResponsesModelIds = [
|
|
4350
4352
|
"gpt-4.1",
|
|
@@ -6873,7 +6875,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6873
6875
|
};
|
|
6874
6876
|
|
|
6875
6877
|
// src/version.ts
|
|
6876
|
-
var VERSION = true ? "3.0.
|
|
6878
|
+
var VERSION = true ? "3.0.60" : "0.0.0-test";
|
|
6877
6879
|
|
|
6878
6880
|
// src/openai-provider.ts
|
|
6879
6881
|
function createOpenAI(options = {}) {
|