@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/index.mjs
CHANGED
|
@@ -1970,7 +1970,12 @@ var webSearchOutputSchema = lazySchema12(
|
|
|
1970
1970
|
pattern: z13.string()
|
|
1971
1971
|
})
|
|
1972
1972
|
]),
|
|
1973
|
-
sources: z13.array(
|
|
1973
|
+
sources: z13.array(
|
|
1974
|
+
z13.discriminatedUnion("type", [
|
|
1975
|
+
z13.object({ type: z13.literal("url"), url: z13.string() }),
|
|
1976
|
+
z13.object({ type: z13.literal("api"), name: z13.string() })
|
|
1977
|
+
])
|
|
1978
|
+
).optional()
|
|
1974
1979
|
})
|
|
1975
1980
|
)
|
|
1976
1981
|
);
|
|
@@ -2591,7 +2596,12 @@ var openaiResponsesChunkSchema = lazySchema14(
|
|
|
2591
2596
|
z16.object({
|
|
2592
2597
|
type: z16.literal("search"),
|
|
2593
2598
|
query: z16.string().nullish(),
|
|
2594
|
-
sources: z16.array(
|
|
2599
|
+
sources: z16.array(
|
|
2600
|
+
z16.discriminatedUnion("type", [
|
|
2601
|
+
z16.object({ type: z16.literal("url"), url: z16.string() }),
|
|
2602
|
+
z16.object({ type: z16.literal("api"), name: z16.string() })
|
|
2603
|
+
])
|
|
2604
|
+
).nullish()
|
|
2595
2605
|
}),
|
|
2596
2606
|
z16.object({
|
|
2597
2607
|
type: z16.literal("open_page"),
|
|
@@ -2778,7 +2788,12 @@ var openaiResponsesResponseSchema = lazySchema14(
|
|
|
2778
2788
|
z16.object({
|
|
2779
2789
|
type: z16.literal("search"),
|
|
2780
2790
|
query: z16.string().nullish(),
|
|
2781
|
-
sources: z16.array(
|
|
2791
|
+
sources: z16.array(
|
|
2792
|
+
z16.discriminatedUnion("type", [
|
|
2793
|
+
z16.object({ type: z16.literal("url"), url: z16.string() }),
|
|
2794
|
+
z16.object({ type: z16.literal("api"), name: z16.string() })
|
|
2795
|
+
])
|
|
2796
|
+
).nullish()
|
|
2782
2797
|
}),
|
|
2783
2798
|
z16.object({
|
|
2784
2799
|
type: z16.literal("open_page"),
|
|
@@ -4530,7 +4545,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4530
4545
|
};
|
|
4531
4546
|
|
|
4532
4547
|
// src/version.ts
|
|
4533
|
-
var VERSION = true ? "3.0.0-beta.
|
|
4548
|
+
var VERSION = true ? "3.0.0-beta.49" : "0.0.0-test";
|
|
4534
4549
|
|
|
4535
4550
|
// src/openai-provider.ts
|
|
4536
4551
|
function createOpenAI(options = {}) {
|