@ai-sdk/openai 2.0.97 → 2.0.99
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 +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- 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 +7 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +7 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
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-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-nano") && !modelId.startsWith("gpt-5-chat") || modelId.startsWith("o3") || modelId.startsWith("o4-mini");
|
|
46
46
|
const isReasoningModel = !(modelId.startsWith("gpt-3") || modelId.startsWith("gpt-4") || modelId.startsWith("chatgpt-4o") || modelId.startsWith("gpt-5-chat"));
|
|
47
|
-
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2");
|
|
47
|
+
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4");
|
|
48
48
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
49
49
|
return {
|
|
50
50
|
supportsFlexProcessing,
|
|
@@ -3003,7 +3003,12 @@ var openaiResponsesReasoningModelIds = [
|
|
|
3003
3003
|
"gpt-5.2-chat-latest",
|
|
3004
3004
|
"gpt-5.2-pro",
|
|
3005
3005
|
"gpt-5.2-codex",
|
|
3006
|
-
"gpt-5.3-
|
|
3006
|
+
"gpt-5.3-chat-latest",
|
|
3007
|
+
"gpt-5.3-codex",
|
|
3008
|
+
"gpt-5.4",
|
|
3009
|
+
"gpt-5.4-2026-03-05",
|
|
3010
|
+
"gpt-5.4-pro",
|
|
3011
|
+
"gpt-5.4-pro-2026-03-05"
|
|
3007
3012
|
];
|
|
3008
3013
|
var openaiResponsesModelIds = [
|
|
3009
3014
|
"gpt-4.1",
|
|
@@ -4711,7 +4716,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4711
4716
|
};
|
|
4712
4717
|
|
|
4713
4718
|
// src/version.ts
|
|
4714
|
-
var VERSION = true ? "2.0.
|
|
4719
|
+
var VERSION = true ? "2.0.99" : "0.0.0-test";
|
|
4715
4720
|
|
|
4716
4721
|
// src/openai-provider.ts
|
|
4717
4722
|
function createOpenAI(options = {}) {
|