@ai-sdk/openai 3.0.0-beta.94 → 3.0.0-beta.95
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -7
- 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 +10 -6
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +10 -6
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -619,7 +619,7 @@ declare const webSearchPreviewInputSchema: _ai_sdk_provider_utils.LazySchema<Rec
|
|
|
619
619
|
declare const webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
|
|
620
620
|
/**
|
|
621
621
|
* An object describing the specific action taken in this web search call.
|
|
622
|
-
* Includes details on how the model used the web (search, open_page,
|
|
622
|
+
* Includes details on how the model used the web (search, open_page, find_in_page).
|
|
623
623
|
*/
|
|
624
624
|
action: {
|
|
625
625
|
/**
|
|
@@ -641,9 +641,9 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOu
|
|
|
641
641
|
url?: string | null;
|
|
642
642
|
} | {
|
|
643
643
|
/**
|
|
644
|
-
* Action type "
|
|
644
|
+
* Action type "findInPage": Searches for a pattern within a loaded page.
|
|
645
645
|
*/
|
|
646
|
-
type: "
|
|
646
|
+
type: "findInPage";
|
|
647
647
|
/**
|
|
648
648
|
* The URL of the page searched for the pattern.
|
|
649
649
|
*/
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -619,7 +619,7 @@ declare const webSearchPreviewInputSchema: _ai_sdk_provider_utils.LazySchema<Rec
|
|
|
619
619
|
declare const webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
|
|
620
620
|
/**
|
|
621
621
|
* An object describing the specific action taken in this web search call.
|
|
622
|
-
* Includes details on how the model used the web (search, open_page,
|
|
622
|
+
* Includes details on how the model used the web (search, open_page, find_in_page).
|
|
623
623
|
*/
|
|
624
624
|
action: {
|
|
625
625
|
/**
|
|
@@ -641,9 +641,9 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOu
|
|
|
641
641
|
url?: string | null;
|
|
642
642
|
} | {
|
|
643
643
|
/**
|
|
644
|
-
* Action type "
|
|
644
|
+
* Action type "findInPage": Searches for a pattern within a loaded page.
|
|
645
645
|
*/
|
|
646
|
-
type: "
|
|
646
|
+
type: "findInPage";
|
|
647
647
|
/**
|
|
648
648
|
* The URL of the page searched for the pattern.
|
|
649
649
|
*/
|
package/dist/internal/index.js
CHANGED
|
@@ -2899,7 +2899,7 @@ var openaiResponsesChunkSchema = (0, import_provider_utils23.lazySchema)(
|
|
|
2899
2899
|
url: import_v416.z.string().nullish()
|
|
2900
2900
|
}),
|
|
2901
2901
|
import_v416.z.object({
|
|
2902
|
-
type: import_v416.z.literal("
|
|
2902
|
+
type: import_v416.z.literal("find_in_page"),
|
|
2903
2903
|
url: import_v416.z.string().nullish(),
|
|
2904
2904
|
pattern: import_v416.z.string().nullish()
|
|
2905
2905
|
})
|
|
@@ -3203,7 +3203,7 @@ var openaiResponsesResponseSchema = (0, import_provider_utils23.lazySchema)(
|
|
|
3203
3203
|
url: import_v416.z.string().nullish()
|
|
3204
3204
|
}),
|
|
3205
3205
|
import_v416.z.object({
|
|
3206
|
-
type: import_v416.z.literal("
|
|
3206
|
+
type: import_v416.z.literal("find_in_page"),
|
|
3207
3207
|
url: import_v416.z.string().nullish(),
|
|
3208
3208
|
pattern: import_v416.z.string().nullish()
|
|
3209
3209
|
})
|
|
@@ -3830,7 +3830,7 @@ var webSearchOutputSchema = (0, import_provider_utils29.lazySchema)(
|
|
|
3830
3830
|
url: import_v422.z.string().nullish()
|
|
3831
3831
|
}),
|
|
3832
3832
|
import_v422.z.object({
|
|
3833
|
-
type: import_v422.z.literal("
|
|
3833
|
+
type: import_v422.z.literal("findInPage"),
|
|
3834
3834
|
url: import_v422.z.string().nullish(),
|
|
3835
3835
|
pattern: import_v422.z.string().nullish()
|
|
3836
3836
|
})
|
|
@@ -3883,7 +3883,7 @@ var webSearchPreviewOutputSchema = (0, import_provider_utils30.lazySchema)(
|
|
|
3883
3883
|
url: import_v423.z.string().nullish()
|
|
3884
3884
|
}),
|
|
3885
3885
|
import_v423.z.object({
|
|
3886
|
-
type: import_v423.z.literal("
|
|
3886
|
+
type: import_v423.z.literal("findInPage"),
|
|
3887
3887
|
url: import_v423.z.string().nullish(),
|
|
3888
3888
|
pattern: import_v423.z.string().nullish()
|
|
3889
3889
|
})
|
|
@@ -5408,9 +5408,13 @@ function mapWebSearchOutput(action) {
|
|
|
5408
5408
|
};
|
|
5409
5409
|
case "open_page":
|
|
5410
5410
|
return { action: { type: "openPage", url: action.url } };
|
|
5411
|
-
case "
|
|
5411
|
+
case "find_in_page":
|
|
5412
5412
|
return {
|
|
5413
|
-
action: {
|
|
5413
|
+
action: {
|
|
5414
|
+
type: "findInPage",
|
|
5415
|
+
url: action.url,
|
|
5416
|
+
pattern: action.pattern
|
|
5417
|
+
}
|
|
5414
5418
|
};
|
|
5415
5419
|
}
|
|
5416
5420
|
}
|