@ai-sdk/openai 3.0.0-beta.48 → 3.0.0-beta.50
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 +27 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -6
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +26 -5
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +26 -5
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.js
CHANGED
|
@@ -2607,7 +2607,12 @@ var openaiResponsesChunkSchema = (0, import_provider_utils21.lazySchema)(
|
|
|
2607
2607
|
import_v414.z.object({
|
|
2608
2608
|
type: import_v414.z.literal("search"),
|
|
2609
2609
|
query: import_v414.z.string().nullish(),
|
|
2610
|
-
sources: import_v414.z.array(
|
|
2610
|
+
sources: import_v414.z.array(
|
|
2611
|
+
import_v414.z.discriminatedUnion("type", [
|
|
2612
|
+
import_v414.z.object({ type: import_v414.z.literal("url"), url: import_v414.z.string() }),
|
|
2613
|
+
import_v414.z.object({ type: import_v414.z.literal("api"), name: import_v414.z.string() })
|
|
2614
|
+
])
|
|
2615
|
+
).nullish()
|
|
2611
2616
|
}),
|
|
2612
2617
|
import_v414.z.object({
|
|
2613
2618
|
type: import_v414.z.literal("open_page"),
|
|
@@ -2626,7 +2631,10 @@ var openaiResponsesChunkSchema = (0, import_provider_utils21.lazySchema)(
|
|
|
2626
2631
|
queries: import_v414.z.array(import_v414.z.string()),
|
|
2627
2632
|
results: import_v414.z.array(
|
|
2628
2633
|
import_v414.z.object({
|
|
2629
|
-
attributes: import_v414.z.record(
|
|
2634
|
+
attributes: import_v414.z.record(
|
|
2635
|
+
import_v414.z.string(),
|
|
2636
|
+
import_v414.z.union([import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()])
|
|
2637
|
+
),
|
|
2630
2638
|
file_id: import_v414.z.string(),
|
|
2631
2639
|
filename: import_v414.z.string(),
|
|
2632
2640
|
score: import_v414.z.number(),
|
|
@@ -2794,7 +2802,12 @@ var openaiResponsesResponseSchema = (0, import_provider_utils21.lazySchema)(
|
|
|
2794
2802
|
import_v414.z.object({
|
|
2795
2803
|
type: import_v414.z.literal("search"),
|
|
2796
2804
|
query: import_v414.z.string().nullish(),
|
|
2797
|
-
sources: import_v414.z.array(
|
|
2805
|
+
sources: import_v414.z.array(
|
|
2806
|
+
import_v414.z.discriminatedUnion("type", [
|
|
2807
|
+
import_v414.z.object({ type: import_v414.z.literal("url"), url: import_v414.z.string() }),
|
|
2808
|
+
import_v414.z.object({ type: import_v414.z.literal("api"), name: import_v414.z.string() })
|
|
2809
|
+
])
|
|
2810
|
+
).nullish()
|
|
2798
2811
|
}),
|
|
2799
2812
|
import_v414.z.object({
|
|
2800
2813
|
type: import_v414.z.literal("open_page"),
|
|
@@ -2813,7 +2826,10 @@ var openaiResponsesResponseSchema = (0, import_provider_utils21.lazySchema)(
|
|
|
2813
2826
|
queries: import_v414.z.array(import_v414.z.string()),
|
|
2814
2827
|
results: import_v414.z.array(
|
|
2815
2828
|
import_v414.z.object({
|
|
2816
|
-
attributes: import_v414.z.record(
|
|
2829
|
+
attributes: import_v414.z.record(
|
|
2830
|
+
import_v414.z.string(),
|
|
2831
|
+
import_v414.z.union([import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()])
|
|
2832
|
+
),
|
|
2817
2833
|
file_id: import_v414.z.string(),
|
|
2818
2834
|
filename: import_v414.z.string(),
|
|
2819
2835
|
score: import_v414.z.number(),
|
|
@@ -3132,7 +3148,12 @@ var webSearchOutputSchema = (0, import_provider_utils25.lazySchema)(
|
|
|
3132
3148
|
pattern: import_v418.z.string()
|
|
3133
3149
|
})
|
|
3134
3150
|
]),
|
|
3135
|
-
sources: import_v418.z.array(
|
|
3151
|
+
sources: import_v418.z.array(
|
|
3152
|
+
import_v418.z.discriminatedUnion("type", [
|
|
3153
|
+
import_v418.z.object({ type: import_v418.z.literal("url"), url: import_v418.z.string() }),
|
|
3154
|
+
import_v418.z.object({ type: import_v418.z.literal("api"), name: import_v418.z.string() })
|
|
3155
|
+
])
|
|
3156
|
+
).optional()
|
|
3136
3157
|
})
|
|
3137
3158
|
)
|
|
3138
3159
|
);
|