@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/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var openaiFailedResponseHandler = createJsonErrorResponseHandler({
|
|
|
43
43
|
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
|
-
const isReasoningModel = modelId.startsWith("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("
|
|
46
|
+
const isReasoningModel = modelId.startsWith("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
47
47
|
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2");
|
|
48
48
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
49
49
|
return {
|
|
@@ -2557,7 +2557,7 @@ var openaiTools = {
|
|
|
2557
2557
|
* Local shell is a tool that allows agents to run shell commands locally
|
|
2558
2558
|
* on a machine you or the user provides.
|
|
2559
2559
|
*
|
|
2560
|
-
* Supported models: `gpt-5-codex`
|
|
2560
|
+
* Supported models: `gpt-5-codex`
|
|
2561
2561
|
*/
|
|
2562
2562
|
localShell,
|
|
2563
2563
|
/**
|
|
@@ -3992,16 +3992,10 @@ var openaiResponsesReasoningModelIds = [
|
|
|
3992
3992
|
"o1-2024-12-17",
|
|
3993
3993
|
"o3",
|
|
3994
3994
|
"o3-2025-04-16",
|
|
3995
|
-
"o3-deep-research",
|
|
3996
|
-
"o3-deep-research-2025-06-26",
|
|
3997
3995
|
"o3-mini",
|
|
3998
3996
|
"o3-mini-2025-01-31",
|
|
3999
3997
|
"o4-mini",
|
|
4000
3998
|
"o4-mini-2025-04-16",
|
|
4001
|
-
"o4-mini-deep-research",
|
|
4002
|
-
"o4-mini-deep-research-2025-06-26",
|
|
4003
|
-
"codex-mini-latest",
|
|
4004
|
-
"computer-use-preview",
|
|
4005
3999
|
"gpt-5",
|
|
4006
4000
|
"gpt-5-2025-08-07",
|
|
4007
4001
|
"gpt-5-codex",
|
|
@@ -4034,7 +4028,6 @@ var openaiResponsesModelIds = [
|
|
|
4034
4028
|
"gpt-4o-2024-08-06",
|
|
4035
4029
|
"gpt-4o-2024-11-20",
|
|
4036
4030
|
"gpt-4o-audio-preview",
|
|
4037
|
-
"gpt-4o-audio-preview-2024-10-01",
|
|
4038
4031
|
"gpt-4o-audio-preview-2024-12-17",
|
|
4039
4032
|
"gpt-4o-search-preview",
|
|
4040
4033
|
"gpt-4o-search-preview-2025-03-11",
|
|
@@ -4042,19 +4035,9 @@ var openaiResponsesModelIds = [
|
|
|
4042
4035
|
"gpt-4o-mini-search-preview-2025-03-11",
|
|
4043
4036
|
"gpt-4o-mini",
|
|
4044
4037
|
"gpt-4o-mini-2024-07-18",
|
|
4045
|
-
"gpt-4-turbo",
|
|
4046
|
-
"gpt-4-turbo-2024-04-09",
|
|
4047
|
-
"gpt-4-turbo-preview",
|
|
4048
|
-
"gpt-4-0125-preview",
|
|
4049
|
-
"gpt-4-1106-preview",
|
|
4050
|
-
"gpt-4",
|
|
4051
|
-
"gpt-4-0613",
|
|
4052
|
-
"gpt-4.5-preview",
|
|
4053
|
-
"gpt-4.5-preview-2025-02-27",
|
|
4054
4038
|
"gpt-3.5-turbo-0125",
|
|
4055
4039
|
"gpt-3.5-turbo",
|
|
4056
4040
|
"gpt-3.5-turbo-1106",
|
|
4057
|
-
"chatgpt-4o-latest",
|
|
4058
4041
|
"gpt-5-chat-latest",
|
|
4059
4042
|
...openaiResponsesReasoningModelIds
|
|
4060
4043
|
];
|
|
@@ -6402,7 +6385,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6402
6385
|
};
|
|
6403
6386
|
|
|
6404
6387
|
// src/version.ts
|
|
6405
|
-
var VERSION = true ? "3.0.
|
|
6388
|
+
var VERSION = true ? "3.0.38" : "0.0.0-test";
|
|
6406
6389
|
|
|
6407
6390
|
// src/openai-provider.ts
|
|
6408
6391
|
function createOpenAI(options = {}) {
|