@ai-sdk/openai 4.0.0 → 4.0.2
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 +13 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +2 -1
- package/dist/internal/index.js.map +1 -1
- package/docs/03-openai.mdx +12 -11
- package/package.json +3 -3
- package/src/responses/openai-responses-api.ts +1 -0
- package/src/responses/openai-responses-language-model-options.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6a436e3]
|
|
8
|
+
- @ai-sdk/provider-utils@5.0.1
|
|
9
|
+
|
|
10
|
+
## 4.0.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 9507724: feat(openai): add support for web_search_call.results include option
|
|
15
|
+
|
|
3
16
|
## 4.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1064,7 +1064,7 @@ declare const openaiTools: {
|
|
|
1064
1064
|
type OpenAIResponsesModelId = 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.1-codex-mini' | 'gpt-5.1-codex' | 'gpt-5.1-codex-max' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.2-codex' | 'gpt-5.3-chat-latest' | 'gpt-5.3-codex' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5-codex' | 'gpt-5-mini-2025-08-07' | 'gpt-5-mini' | 'gpt-5-nano-2025-08-07' | 'gpt-5-nano' | 'gpt-5-pro-2025-10-06' | 'gpt-5-pro' | 'gpt-5' | 'o1-2024-12-17' | 'o1' | 'o3-2025-04-16' | 'o3-mini-2025-01-31' | 'o3-mini' | 'o3' | 'o4-mini' | 'o4-mini-2025-04-16' | (string & {});
|
|
1065
1065
|
declare const openaiLanguageModelResponsesOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
1066
1066
|
conversation?: string | null | undefined;
|
|
1067
|
-
include?: ("file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined;
|
|
1067
|
+
include?: ("web_search_call.results" | "file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined;
|
|
1068
1068
|
instructions?: string | null | undefined;
|
|
1069
1069
|
logprobs?: number | boolean | undefined;
|
|
1070
1070
|
maxToolCalls?: number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -5185,13 +5185,14 @@ var openaiLanguageModelResponsesOptionsSchema = lazySchema23(
|
|
|
5185
5185
|
conversation: z25.string().nullish(),
|
|
5186
5186
|
/**
|
|
5187
5187
|
* The set of extra fields to include in the response (advanced, usually not needed).
|
|
5188
|
-
* Example values: 'reasoning.encrypted_content', 'file_search_call.results', 'message.output_text.logprobs'.
|
|
5188
|
+
* Example values: 'reasoning.encrypted_content', 'file_search_call.results', 'web_search_call.results', 'message.output_text.logprobs'.
|
|
5189
5189
|
*/
|
|
5190
5190
|
include: z25.array(
|
|
5191
5191
|
z25.enum([
|
|
5192
5192
|
"reasoning.encrypted_content",
|
|
5193
5193
|
// handled internally by default, only needed for unknown reasoning models
|
|
5194
5194
|
"file_search_call.results",
|
|
5195
|
+
"web_search_call.results",
|
|
5195
5196
|
"message.output_text.logprobs"
|
|
5196
5197
|
])
|
|
5197
5198
|
).nullish(),
|
|
@@ -7960,7 +7961,7 @@ var OpenAISkills = class {
|
|
|
7960
7961
|
};
|
|
7961
7962
|
|
|
7962
7963
|
// src/version.ts
|
|
7963
|
-
var VERSION = true ? "4.0.
|
|
7964
|
+
var VERSION = true ? "4.0.2" : "0.0.0-test";
|
|
7964
7965
|
|
|
7965
7966
|
// src/openai-provider.ts
|
|
7966
7967
|
function createOpenAI(options = {}) {
|