@ai-sdk/openai 3.0.0-beta.64 → 3.0.0-beta.65
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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -78,6 +78,12 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
|
|
|
78
78
|
name: string;
|
|
79
79
|
}>;
|
|
80
80
|
}, {
|
|
81
|
+
/**
|
|
82
|
+
* Whether to use external web access for fetching live content.
|
|
83
|
+
* - true: Fetch live web content (default)
|
|
84
|
+
* - false: Use cached/indexed results
|
|
85
|
+
*/
|
|
86
|
+
externalWebAccess?: boolean;
|
|
81
87
|
/**
|
|
82
88
|
* Filters for the search.
|
|
83
89
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,12 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
|
|
|
78
78
|
name: string;
|
|
79
79
|
}>;
|
|
80
80
|
}, {
|
|
81
|
+
/**
|
|
82
|
+
* Whether to use external web access for fetching live content.
|
|
83
|
+
* - true: Fetch live web content (default)
|
|
84
|
+
* - false: Use cached/indexed results
|
|
85
|
+
*/
|
|
86
|
+
externalWebAccess?: boolean;
|
|
81
87
|
/**
|
|
82
88
|
* Filters for the search.
|
|
83
89
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1917,6 +1917,7 @@ var import_v413 = require("zod/v4");
|
|
|
1917
1917
|
var webSearchArgsSchema = (0, import_provider_utils18.lazySchema)(
|
|
1918
1918
|
() => (0, import_provider_utils18.zodSchema)(
|
|
1919
1919
|
import_v413.z.object({
|
|
1920
|
+
externalWebAccess: import_v413.z.boolean().optional(),
|
|
1920
1921
|
filters: import_v413.z.object({ allowedDomains: import_v413.z.array(import_v413.z.string()).optional() }).optional(),
|
|
1921
1922
|
searchContextSize: import_v413.z.enum(["low", "medium", "high"]).optional(),
|
|
1922
1923
|
userLocation: import_v413.z.object({
|
|
@@ -3289,6 +3290,7 @@ async function prepareResponsesTools({
|
|
|
3289
3290
|
openaiTools2.push({
|
|
3290
3291
|
type: "web_search",
|
|
3291
3292
|
filters: args.filters != null ? { allowed_domains: args.filters.allowedDomains } : void 0,
|
|
3293
|
+
external_web_access: args.externalWebAccess,
|
|
3292
3294
|
search_context_size: args.searchContextSize,
|
|
3293
3295
|
user_location: args.userLocation
|
|
3294
3296
|
});
|
|
@@ -4989,7 +4991,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4989
4991
|
};
|
|
4990
4992
|
|
|
4991
4993
|
// src/version.ts
|
|
4992
|
-
var VERSION = true ? "3.0.0-beta.
|
|
4994
|
+
var VERSION = true ? "3.0.0-beta.65" : "0.0.0-test";
|
|
4993
4995
|
|
|
4994
4996
|
// src/openai-provider.ts
|
|
4995
4997
|
function createOpenAI(options = {}) {
|