@ai-sdk/openai 2.0.60 → 2.0.62
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 +14 -0
- package/dist/index.d.mts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +18 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +18 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/internal/index.mjs
CHANGED
|
@@ -2628,7 +2628,12 @@ var openaiResponsesChunkSchema = lazyValidator11(
|
|
|
2628
2628
|
z14.object({
|
|
2629
2629
|
type: z14.literal("search"),
|
|
2630
2630
|
query: z14.string().nullish(),
|
|
2631
|
-
sources: z14.array(
|
|
2631
|
+
sources: z14.array(
|
|
2632
|
+
z14.discriminatedUnion("type", [
|
|
2633
|
+
z14.object({ type: z14.literal("url"), url: z14.string() }),
|
|
2634
|
+
z14.object({ type: z14.literal("api"), name: z14.string() })
|
|
2635
|
+
])
|
|
2636
|
+
).nullish()
|
|
2632
2637
|
}),
|
|
2633
2638
|
z14.object({
|
|
2634
2639
|
type: z14.literal("open_page"),
|
|
@@ -2815,7 +2820,12 @@ var openaiResponsesResponseSchema = lazyValidator11(
|
|
|
2815
2820
|
z14.object({
|
|
2816
2821
|
type: z14.literal("search"),
|
|
2817
2822
|
query: z14.string().nullish(),
|
|
2818
|
-
sources: z14.array(
|
|
2823
|
+
sources: z14.array(
|
|
2824
|
+
z14.discriminatedUnion("type", [
|
|
2825
|
+
z14.object({ type: z14.literal("url"), url: z14.string() }),
|
|
2826
|
+
z14.object({ type: z14.literal("api"), name: z14.string() })
|
|
2827
|
+
])
|
|
2828
|
+
).nullish()
|
|
2819
2829
|
}),
|
|
2820
2830
|
z14.object({
|
|
2821
2831
|
type: z14.literal("open_page"),
|
|
@@ -3170,7 +3180,12 @@ var webSearchOutputSchema = lazySchema4(
|
|
|
3170
3180
|
pattern: z18.string()
|
|
3171
3181
|
})
|
|
3172
3182
|
]),
|
|
3173
|
-
sources: z18.array(
|
|
3183
|
+
sources: z18.array(
|
|
3184
|
+
z18.discriminatedUnion("type", [
|
|
3185
|
+
z18.object({ type: z18.literal("url"), url: z18.string() }),
|
|
3186
|
+
z18.object({ type: z18.literal("api"), name: z18.string() })
|
|
3187
|
+
])
|
|
3188
|
+
).optional()
|
|
3174
3189
|
})
|
|
3175
3190
|
)
|
|
3176
3191
|
);
|