@ai-sdk/openai 3.0.75 → 3.0.77

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.77
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [b30e43a]
8
+ - @ai-sdk/provider-utils@4.0.33
9
+
10
+ ## 3.0.76
11
+
12
+ ### Patch Changes
13
+
14
+ - 2ee1700: feat(openai): add support for web_search_call.results include option
15
+ - Updated dependencies [f19334d]
16
+ - @ai-sdk/provider@3.0.12
17
+ - @ai-sdk/provider-utils@4.0.32
18
+
3
19
  ## 3.0.75
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1052,7 +1052,7 @@ declare const openaiTools: {
1052
1052
  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 & {});
1053
1053
  declare const openaiLanguageModelResponsesOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
1054
1054
  conversation?: string | null | undefined;
1055
- include?: ("file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined;
1055
+ include?: ("web_search_call.results" | "file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined;
1056
1056
  instructions?: string | null | undefined;
1057
1057
  logprobs?: number | boolean | undefined;
1058
1058
  maxToolCalls?: number | null | undefined;
package/dist/index.d.ts CHANGED
@@ -1052,7 +1052,7 @@ declare const openaiTools: {
1052
1052
  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 & {});
1053
1053
  declare const openaiLanguageModelResponsesOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
1054
1054
  conversation?: string | null | undefined;
1055
- include?: ("file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined;
1055
+ include?: ("web_search_call.results" | "file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined;
1056
1056
  instructions?: string | null | undefined;
1057
1057
  logprobs?: number | boolean | undefined;
1058
1058
  maxToolCalls?: number | null | undefined;
package/dist/index.js CHANGED
@@ -4319,13 +4319,14 @@ var openaiLanguageModelResponsesOptionsSchema = (0, import_provider_utils28.lazy
4319
4319
  conversation: import_v423.z.string().nullish(),
4320
4320
  /**
4321
4321
  * The set of extra fields to include in the response (advanced, usually not needed).
4322
- * Example values: 'reasoning.encrypted_content', 'file_search_call.results', 'message.output_text.logprobs'.
4322
+ * Example values: 'reasoning.encrypted_content', 'file_search_call.results', 'web_search_call.results', 'message.output_text.logprobs'.
4323
4323
  */
4324
4324
  include: import_v423.z.array(
4325
4325
  import_v423.z.enum([
4326
4326
  "reasoning.encrypted_content",
4327
4327
  // handled internally by default, only needed for unknown reasoning models
4328
4328
  "file_search_call.results",
4329
+ "web_search_call.results",
4329
4330
  "message.output_text.logprobs"
4330
4331
  ])
4331
4332
  ).nullish(),
@@ -6866,7 +6867,7 @@ var OpenAITranscriptionModel = class {
6866
6867
  };
6867
6868
 
6868
6869
  // src/version.ts
6869
- var VERSION = true ? "3.0.75" : "0.0.0-test";
6870
+ var VERSION = true ? "3.0.77" : "0.0.0-test";
6870
6871
 
6871
6872
  // src/openai-provider.ts
6872
6873
  function createOpenAI(options = {}) {