@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.js
CHANGED
|
@@ -2589,7 +2589,12 @@ var openaiResponsesChunkSchema = (0, import_provider_utils21.lazyValidator)(
|
|
|
2589
2589
|
import_v414.z.object({
|
|
2590
2590
|
type: import_v414.z.literal("search"),
|
|
2591
2591
|
query: import_v414.z.string().nullish(),
|
|
2592
|
-
sources: import_v414.z.array(
|
|
2592
|
+
sources: import_v414.z.array(
|
|
2593
|
+
import_v414.z.discriminatedUnion("type", [
|
|
2594
|
+
import_v414.z.object({ type: import_v414.z.literal("url"), url: import_v414.z.string() }),
|
|
2595
|
+
import_v414.z.object({ type: import_v414.z.literal("api"), name: import_v414.z.string() })
|
|
2596
|
+
])
|
|
2597
|
+
).nullish()
|
|
2593
2598
|
}),
|
|
2594
2599
|
import_v414.z.object({
|
|
2595
2600
|
type: import_v414.z.literal("open_page"),
|
|
@@ -2776,7 +2781,12 @@ var openaiResponsesResponseSchema = (0, import_provider_utils21.lazyValidator)(
|
|
|
2776
2781
|
import_v414.z.object({
|
|
2777
2782
|
type: import_v414.z.literal("search"),
|
|
2778
2783
|
query: import_v414.z.string().nullish(),
|
|
2779
|
-
sources: import_v414.z.array(
|
|
2784
|
+
sources: import_v414.z.array(
|
|
2785
|
+
import_v414.z.discriminatedUnion("type", [
|
|
2786
|
+
import_v414.z.object({ type: import_v414.z.literal("url"), url: import_v414.z.string() }),
|
|
2787
|
+
import_v414.z.object({ type: import_v414.z.literal("api"), name: import_v414.z.string() })
|
|
2788
|
+
])
|
|
2789
|
+
).nullish()
|
|
2780
2790
|
}),
|
|
2781
2791
|
import_v414.z.object({
|
|
2782
2792
|
type: import_v414.z.literal("open_page"),
|
|
@@ -3114,7 +3124,12 @@ var webSearchOutputSchema = (0, import_provider_utils25.lazySchema)(
|
|
|
3114
3124
|
pattern: import_v418.z.string()
|
|
3115
3125
|
})
|
|
3116
3126
|
]),
|
|
3117
|
-
sources: import_v418.z.array(
|
|
3127
|
+
sources: import_v418.z.array(
|
|
3128
|
+
import_v418.z.discriminatedUnion("type", [
|
|
3129
|
+
import_v418.z.object({ type: import_v418.z.literal("url"), url: import_v418.z.string() }),
|
|
3130
|
+
import_v418.z.object({ type: import_v418.z.literal("api"), name: import_v418.z.string() })
|
|
3131
|
+
])
|
|
3132
|
+
).optional()
|
|
3118
3133
|
})
|
|
3119
3134
|
)
|
|
3120
3135
|
);
|