@ai-sdk/openai 2.0.76 → 2.0.77
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 +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +3 -3
- package/dist/internal/index.d.ts +3 -3
- package/dist/internal/index.js +12 -12
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +12 -12
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -51,7 +51,7 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
|
|
|
51
51
|
/**
|
|
52
52
|
* The URL opened by the model.
|
|
53
53
|
*/
|
|
54
|
-
url
|
|
54
|
+
url?: string | null;
|
|
55
55
|
} | {
|
|
56
56
|
/**
|
|
57
57
|
* Action type "find": Searches for a pattern within a loaded page.
|
|
@@ -60,11 +60,11 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
|
|
|
60
60
|
/**
|
|
61
61
|
* The URL of the page searched for the pattern.
|
|
62
62
|
*/
|
|
63
|
-
url
|
|
63
|
+
url?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
* The pattern or text to search for within the page.
|
|
66
66
|
*/
|
|
67
|
-
pattern
|
|
67
|
+
pattern?: string | null;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* Optional sources cited by the model for the web search call.
|
|
@@ -281,11 +281,11 @@ declare const openaiTools: {
|
|
|
281
281
|
query?: string;
|
|
282
282
|
} | {
|
|
283
283
|
type: "openPage";
|
|
284
|
-
url
|
|
284
|
+
url?: string | null;
|
|
285
285
|
} | {
|
|
286
286
|
type: "find";
|
|
287
|
-
url
|
|
288
|
-
pattern
|
|
287
|
+
url?: string | null;
|
|
288
|
+
pattern?: string | null;
|
|
289
289
|
};
|
|
290
290
|
}, {
|
|
291
291
|
searchContextSize?: "low" | "medium" | "high";
|
|
@@ -313,11 +313,11 @@ declare const openaiTools: {
|
|
|
313
313
|
query?: string;
|
|
314
314
|
} | {
|
|
315
315
|
type: "openPage";
|
|
316
|
-
url
|
|
316
|
+
url?: string | null;
|
|
317
317
|
} | {
|
|
318
318
|
type: "find";
|
|
319
|
-
url
|
|
320
|
-
pattern
|
|
319
|
+
url?: string | null;
|
|
320
|
+
pattern?: string | null;
|
|
321
321
|
};
|
|
322
322
|
sources?: Array<{
|
|
323
323
|
type: "url";
|
package/dist/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
|
|
|
51
51
|
/**
|
|
52
52
|
* The URL opened by the model.
|
|
53
53
|
*/
|
|
54
|
-
url
|
|
54
|
+
url?: string | null;
|
|
55
55
|
} | {
|
|
56
56
|
/**
|
|
57
57
|
* Action type "find": Searches for a pattern within a loaded page.
|
|
@@ -60,11 +60,11 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
|
|
|
60
60
|
/**
|
|
61
61
|
* The URL of the page searched for the pattern.
|
|
62
62
|
*/
|
|
63
|
-
url
|
|
63
|
+
url?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
* The pattern or text to search for within the page.
|
|
66
66
|
*/
|
|
67
|
-
pattern
|
|
67
|
+
pattern?: string | null;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* Optional sources cited by the model for the web search call.
|
|
@@ -281,11 +281,11 @@ declare const openaiTools: {
|
|
|
281
281
|
query?: string;
|
|
282
282
|
} | {
|
|
283
283
|
type: "openPage";
|
|
284
|
-
url
|
|
284
|
+
url?: string | null;
|
|
285
285
|
} | {
|
|
286
286
|
type: "find";
|
|
287
|
-
url
|
|
288
|
-
pattern
|
|
287
|
+
url?: string | null;
|
|
288
|
+
pattern?: string | null;
|
|
289
289
|
};
|
|
290
290
|
}, {
|
|
291
291
|
searchContextSize?: "low" | "medium" | "high";
|
|
@@ -313,11 +313,11 @@ declare const openaiTools: {
|
|
|
313
313
|
query?: string;
|
|
314
314
|
} | {
|
|
315
315
|
type: "openPage";
|
|
316
|
-
url
|
|
316
|
+
url?: string | null;
|
|
317
317
|
} | {
|
|
318
318
|
type: "find";
|
|
319
|
-
url
|
|
320
|
-
pattern
|
|
319
|
+
url?: string | null;
|
|
320
|
+
pattern?: string | null;
|
|
321
321
|
};
|
|
322
322
|
sources?: Array<{
|
|
323
323
|
type: "url";
|
package/dist/index.js
CHANGED
|
@@ -1958,12 +1958,12 @@ var webSearchOutputSchema = (0, import_provider_utils18.lazySchema)(
|
|
|
1958
1958
|
}),
|
|
1959
1959
|
import_v413.z.object({
|
|
1960
1960
|
type: import_v413.z.literal("openPage"),
|
|
1961
|
-
url: import_v413.z.string()
|
|
1961
|
+
url: import_v413.z.string().nullish()
|
|
1962
1962
|
}),
|
|
1963
1963
|
import_v413.z.object({
|
|
1964
1964
|
type: import_v413.z.literal("find"),
|
|
1965
|
-
url: import_v413.z.string(),
|
|
1966
|
-
pattern: import_v413.z.string()
|
|
1965
|
+
url: import_v413.z.string().nullish(),
|
|
1966
|
+
pattern: import_v413.z.string().nullish()
|
|
1967
1967
|
})
|
|
1968
1968
|
]),
|
|
1969
1969
|
sources: import_v413.z.array(
|
|
@@ -2013,12 +2013,12 @@ var webSearchPreviewOutputSchema = (0, import_provider_utils19.lazySchema)(
|
|
|
2013
2013
|
}),
|
|
2014
2014
|
import_v414.z.object({
|
|
2015
2015
|
type: import_v414.z.literal("openPage"),
|
|
2016
|
-
url: import_v414.z.string()
|
|
2016
|
+
url: import_v414.z.string().nullish()
|
|
2017
2017
|
}),
|
|
2018
2018
|
import_v414.z.object({
|
|
2019
2019
|
type: import_v414.z.literal("find"),
|
|
2020
|
-
url: import_v414.z.string(),
|
|
2021
|
-
pattern: import_v414.z.string()
|
|
2020
|
+
url: import_v414.z.string().nullish(),
|
|
2021
|
+
pattern: import_v414.z.string().nullish()
|
|
2022
2022
|
})
|
|
2023
2023
|
])
|
|
2024
2024
|
})
|
|
@@ -2562,12 +2562,12 @@ var openaiResponsesChunkSchema = (0, import_provider_utils21.lazyValidator)(
|
|
|
2562
2562
|
}),
|
|
2563
2563
|
import_v416.z.object({
|
|
2564
2564
|
type: import_v416.z.literal("open_page"),
|
|
2565
|
-
url: import_v416.z.string()
|
|
2565
|
+
url: import_v416.z.string().nullish()
|
|
2566
2566
|
}),
|
|
2567
2567
|
import_v416.z.object({
|
|
2568
2568
|
type: import_v416.z.literal("find"),
|
|
2569
|
-
url: import_v416.z.string(),
|
|
2570
|
-
pattern: import_v416.z.string()
|
|
2569
|
+
url: import_v416.z.string().nullish(),
|
|
2570
|
+
pattern: import_v416.z.string().nullish()
|
|
2571
2571
|
})
|
|
2572
2572
|
])
|
|
2573
2573
|
}),
|
|
@@ -2772,12 +2772,12 @@ var openaiResponsesResponseSchema = (0, import_provider_utils21.lazyValidator)(
|
|
|
2772
2772
|
}),
|
|
2773
2773
|
import_v416.z.object({
|
|
2774
2774
|
type: import_v416.z.literal("open_page"),
|
|
2775
|
-
url: import_v416.z.string()
|
|
2775
|
+
url: import_v416.z.string().nullish()
|
|
2776
2776
|
}),
|
|
2777
2777
|
import_v416.z.object({
|
|
2778
2778
|
type: import_v416.z.literal("find"),
|
|
2779
|
-
url: import_v416.z.string(),
|
|
2780
|
-
pattern: import_v416.z.string()
|
|
2779
|
+
url: import_v416.z.string().nullish(),
|
|
2780
|
+
pattern: import_v416.z.string().nullish()
|
|
2781
2781
|
})
|
|
2782
2782
|
])
|
|
2783
2783
|
}),
|
|
@@ -4582,7 +4582,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4582
4582
|
};
|
|
4583
4583
|
|
|
4584
4584
|
// src/version.ts
|
|
4585
|
-
var VERSION = true ? "2.0.
|
|
4585
|
+
var VERSION = true ? "2.0.77" : "0.0.0-test";
|
|
4586
4586
|
|
|
4587
4587
|
// src/openai-provider.ts
|
|
4588
4588
|
function createOpenAI(options = {}) {
|