@ai-sdk/openai 3.0.37 → 3.0.38
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 +6 -0
- package/README.md +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -20
- 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 +1 -18
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -18
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +1 -1
- package/package.json +1 -1
- package/src/chat/openai-chat-options.ts +0 -5
- package/src/openai-language-model-capabilities.ts +0 -2
- package/src/openai-tools.ts +1 -1
- package/src/responses/openai-responses-options.ts +0 -22
package/dist/internal/index.mjs
CHANGED
|
@@ -35,7 +35,7 @@ var openaiFailedResponseHandler = createJsonErrorResponseHandler({
|
|
|
35
35
|
function getOpenAILanguageModelCapabilities(modelId) {
|
|
36
36
|
const supportsFlexProcessing = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
37
37
|
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");
|
|
38
|
-
const isReasoningModel = modelId.startsWith("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("
|
|
38
|
+
const isReasoningModel = modelId.startsWith("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
39
39
|
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2");
|
|
40
40
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
41
41
|
return {
|
|
@@ -3894,16 +3894,10 @@ var openaiResponsesReasoningModelIds = [
|
|
|
3894
3894
|
"o1-2024-12-17",
|
|
3895
3895
|
"o3",
|
|
3896
3896
|
"o3-2025-04-16",
|
|
3897
|
-
"o3-deep-research",
|
|
3898
|
-
"o3-deep-research-2025-06-26",
|
|
3899
3897
|
"o3-mini",
|
|
3900
3898
|
"o3-mini-2025-01-31",
|
|
3901
3899
|
"o4-mini",
|
|
3902
3900
|
"o4-mini-2025-04-16",
|
|
3903
|
-
"o4-mini-deep-research",
|
|
3904
|
-
"o4-mini-deep-research-2025-06-26",
|
|
3905
|
-
"codex-mini-latest",
|
|
3906
|
-
"computer-use-preview",
|
|
3907
3901
|
"gpt-5",
|
|
3908
3902
|
"gpt-5-2025-08-07",
|
|
3909
3903
|
"gpt-5-codex",
|
|
@@ -3936,7 +3930,6 @@ var openaiResponsesModelIds = [
|
|
|
3936
3930
|
"gpt-4o-2024-08-06",
|
|
3937
3931
|
"gpt-4o-2024-11-20",
|
|
3938
3932
|
"gpt-4o-audio-preview",
|
|
3939
|
-
"gpt-4o-audio-preview-2024-10-01",
|
|
3940
3933
|
"gpt-4o-audio-preview-2024-12-17",
|
|
3941
3934
|
"gpt-4o-search-preview",
|
|
3942
3935
|
"gpt-4o-search-preview-2025-03-11",
|
|
@@ -3944,19 +3937,9 @@ var openaiResponsesModelIds = [
|
|
|
3944
3937
|
"gpt-4o-mini-search-preview-2025-03-11",
|
|
3945
3938
|
"gpt-4o-mini",
|
|
3946
3939
|
"gpt-4o-mini-2024-07-18",
|
|
3947
|
-
"gpt-4-turbo",
|
|
3948
|
-
"gpt-4-turbo-2024-04-09",
|
|
3949
|
-
"gpt-4-turbo-preview",
|
|
3950
|
-
"gpt-4-0125-preview",
|
|
3951
|
-
"gpt-4-1106-preview",
|
|
3952
|
-
"gpt-4",
|
|
3953
|
-
"gpt-4-0613",
|
|
3954
|
-
"gpt-4.5-preview",
|
|
3955
|
-
"gpt-4.5-preview-2025-02-27",
|
|
3956
3940
|
"gpt-3.5-turbo-0125",
|
|
3957
3941
|
"gpt-3.5-turbo",
|
|
3958
3942
|
"gpt-3.5-turbo-1106",
|
|
3959
|
-
"chatgpt-4o-latest",
|
|
3960
3943
|
"gpt-5-chat-latest",
|
|
3961
3944
|
...openaiResponsesReasoningModelIds
|
|
3962
3945
|
];
|