@ai-sdk/openai 3.0.0-beta.48 → 3.0.0-beta.49
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 +6 -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 +5 -5
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"),
|
|
@@ -2794,7 +2799,12 @@ var openaiResponsesResponseSchema = (0, import_provider_utils21.lazySchema)(
|
|
|
2794
2799
|
import_v414.z.object({
|
|
2795
2800
|
type: import_v414.z.literal("search"),
|
|
2796
2801
|
query: import_v414.z.string().nullish(),
|
|
2797
|
-
sources: import_v414.z.array(
|
|
2802
|
+
sources: import_v414.z.array(
|
|
2803
|
+
import_v414.z.discriminatedUnion("type", [
|
|
2804
|
+
import_v414.z.object({ type: import_v414.z.literal("url"), url: import_v414.z.string() }),
|
|
2805
|
+
import_v414.z.object({ type: import_v414.z.literal("api"), name: import_v414.z.string() })
|
|
2806
|
+
])
|
|
2807
|
+
).nullish()
|
|
2798
2808
|
}),
|
|
2799
2809
|
import_v414.z.object({
|
|
2800
2810
|
type: import_v414.z.literal("open_page"),
|
|
@@ -3132,7 +3142,12 @@ var webSearchOutputSchema = (0, import_provider_utils25.lazySchema)(
|
|
|
3132
3142
|
pattern: import_v418.z.string()
|
|
3133
3143
|
})
|
|
3134
3144
|
]),
|
|
3135
|
-
sources: import_v418.z.array(
|
|
3145
|
+
sources: import_v418.z.array(
|
|
3146
|
+
import_v418.z.discriminatedUnion("type", [
|
|
3147
|
+
import_v418.z.object({ type: import_v418.z.literal("url"), url: import_v418.z.string() }),
|
|
3148
|
+
import_v418.z.object({ type: import_v418.z.literal("api"), name: import_v418.z.string() })
|
|
3149
|
+
])
|
|
3150
|
+
).optional()
|
|
3136
3151
|
})
|
|
3137
3152
|
)
|
|
3138
3153
|
);
|