@ai-sdk/openai 3.0.30 → 3.0.32

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/dist/index.mjs CHANGED
@@ -2328,7 +2328,7 @@ var webSearchOutputSchema = lazySchema14(
2328
2328
  url: z15.string().nullish(),
2329
2329
  pattern: z15.string().nullish()
2330
2330
  })
2331
- ]),
2331
+ ]).optional(),
2332
2332
  sources: z15.array(
2333
2333
  z15.discriminatedUnion("type", [
2334
2334
  z15.object({ type: z15.literal("url"), url: z15.string() }),
@@ -2386,7 +2386,7 @@ var webSearchPreviewOutputSchema = lazySchema15(
2386
2386
  url: z16.string().nullish(),
2387
2387
  pattern: z16.string().nullish()
2388
2388
  })
2389
- ])
2389
+ ]).optional()
2390
2390
  })
2391
2391
  )
2392
2392
  );
@@ -3308,7 +3308,7 @@ var openaiResponsesChunkSchema = lazySchema17(
3308
3308
  url: z19.string().nullish(),
3309
3309
  pattern: z19.string().nullish()
3310
3310
  })
3311
- ])
3311
+ ]).nullish()
3312
3312
  }),
3313
3313
  z19.object({
3314
3314
  type: z19.literal("file_search_call"),
@@ -3624,7 +3624,10 @@ var openaiResponsesResponseSchema = lazySchema17(
3624
3624
  sources: z19.array(
3625
3625
  z19.discriminatedUnion("type", [
3626
3626
  z19.object({ type: z19.literal("url"), url: z19.string() }),
3627
- z19.object({ type: z19.literal("api"), name: z19.string() })
3627
+ z19.object({
3628
+ type: z19.literal("api"),
3629
+ name: z19.string()
3630
+ })
3628
3631
  ])
3629
3632
  ).nullish()
3630
3633
  }),
@@ -3637,7 +3640,7 @@ var openaiResponsesResponseSchema = lazySchema17(
3637
3640
  url: z19.string().nullish(),
3638
3641
  pattern: z19.string().nullish()
3639
3642
  })
3640
- ])
3643
+ ]).nullish()
3641
3644
  }),
3642
3645
  z19.object({
3643
3646
  type: z19.literal("file_search_call"),
@@ -3855,7 +3858,9 @@ var openaiResponsesReasoningModelIds = [
3855
3858
  "gpt-5.1-codex-max",
3856
3859
  "gpt-5.2",
3857
3860
  "gpt-5.2-chat-latest",
3858
- "gpt-5.2-pro"
3861
+ "gpt-5.2-pro",
3862
+ "gpt-5.2-codex",
3863
+ "gpt-5.3-codex"
3859
3864
  ];
3860
3865
  var openaiResponsesModelIds = [
3861
3866
  "gpt-4.1",
@@ -5750,6 +5755,9 @@ function isErrorChunk(chunk) {
5750
5755
  }
5751
5756
  function mapWebSearchOutput(action) {
5752
5757
  var _a;
5758
+ if (action == null) {
5759
+ return {};
5760
+ }
5753
5761
  switch (action.type) {
5754
5762
  case "search":
5755
5763
  return {
@@ -6138,7 +6146,7 @@ var OpenAITranscriptionModel = class {
6138
6146
  };
6139
6147
 
6140
6148
  // src/version.ts
6141
- var VERSION = true ? "3.0.30" : "0.0.0-test";
6149
+ var VERSION = true ? "3.0.32" : "0.0.0-test";
6142
6150
 
6143
6151
  // src/openai-provider.ts
6144
6152
  function createOpenAI(options = {}) {