@ai-sdk/openai 3.0.65 → 3.0.67

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
@@ -2495,7 +2495,8 @@ var webSearchOutputSchema = lazySchema17(
2495
2495
  action: z18.discriminatedUnion("type", [
2496
2496
  z18.object({
2497
2497
  type: z18.literal("search"),
2498
- query: z18.string().optional()
2498
+ query: z18.string().optional(),
2499
+ queries: z18.array(z18.string()).optional()
2499
2500
  }),
2500
2501
  z18.object({
2501
2502
  type: z18.literal("openPage"),
@@ -3732,6 +3733,7 @@ var openaiResponsesChunkSchema = lazySchema20(
3732
3733
  z22.object({
3733
3734
  type: z22.literal("search"),
3734
3735
  query: z22.string().nullish(),
3736
+ queries: z22.array(z22.string()).nullish(),
3735
3737
  sources: z22.array(
3736
3738
  z22.discriminatedUnion("type", [
3737
3739
  z22.object({ type: z22.literal("url"), url: z22.string() }),
@@ -4084,6 +4086,7 @@ var openaiResponsesResponseSchema = lazySchema20(
4084
4086
  z22.object({
4085
4087
  type: z22.literal("search"),
4086
4088
  query: z22.string().nullish(),
4089
+ queries: z22.array(z22.string()).nullish(),
4087
4090
  sources: z22.array(
4088
4091
  z22.discriminatedUnion("type", [
4089
4092
  z22.object({ type: z22.literal("url"), url: z22.string() }),
@@ -6536,7 +6539,11 @@ function mapWebSearchOutput(action) {
6536
6539
  switch (action.type) {
6537
6540
  case "search":
6538
6541
  return {
6539
- action: { type: "search", query: (_a = action.query) != null ? _a : void 0 },
6542
+ action: {
6543
+ type: "search",
6544
+ query: (_a = action.query) != null ? _a : void 0,
6545
+ ...action.queries != null && { queries: action.queries }
6546
+ },
6540
6547
  // include sources when provided by the Responses API (behind include flag)
6541
6548
  ...action.sources != null && { sources: action.sources }
6542
6549
  };
@@ -6927,7 +6934,7 @@ var OpenAITranscriptionModel = class {
6927
6934
  };
6928
6935
 
6929
6936
  // src/version.ts
6930
- var VERSION = true ? "3.0.65" : "0.0.0-test";
6937
+ var VERSION = true ? "3.0.67" : "0.0.0-test";
6931
6938
 
6932
6939
  // src/openai-provider.ts
6933
6940
  function createOpenAI(options = {}) {