@ai-sdk/openai 3.0.0-beta.61 → 3.0.0-beta.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 +6 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +84 -1
- package/dist/internal/index.d.ts +84 -1
- package/dist/internal/index.js +12 -4
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +8 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2856,6 +2856,8 @@ var openaiResponsesChunkSchema = lazySchema15(
|
|
|
2856
2856
|
annotation: z17.discriminatedUnion("type", [
|
|
2857
2857
|
z17.object({
|
|
2858
2858
|
type: z17.literal("url_citation"),
|
|
2859
|
+
start_index: z17.number(),
|
|
2860
|
+
end_index: z17.number(),
|
|
2859
2861
|
url: z17.string(),
|
|
2860
2862
|
title: z17.string()
|
|
2861
2863
|
}),
|
|
@@ -4131,7 +4133,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4131
4133
|
controller.enqueue({
|
|
4132
4134
|
type: "tool-call",
|
|
4133
4135
|
toolCallId: value.item.id,
|
|
4134
|
-
toolName: "web_search",
|
|
4136
|
+
toolName: webSearchToolName != null ? webSearchToolName : "web_search",
|
|
4135
4137
|
input: JSON.stringify({}),
|
|
4136
4138
|
providerExecuted: true
|
|
4137
4139
|
});
|
|
@@ -4239,7 +4241,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4239
4241
|
controller.enqueue({
|
|
4240
4242
|
type: "tool-result",
|
|
4241
4243
|
toolCallId: value.item.id,
|
|
4242
|
-
toolName: "web_search",
|
|
4244
|
+
toolName: webSearchToolName != null ? webSearchToolName : "web_search",
|
|
4243
4245
|
result: mapWebSearchOutput(value.item.action)
|
|
4244
4246
|
});
|
|
4245
4247
|
} else if (value.item.type === "computer_call") {
|
|
@@ -5045,7 +5047,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5045
5047
|
};
|
|
5046
5048
|
|
|
5047
5049
|
// src/version.ts
|
|
5048
|
-
var VERSION = true ? "3.0.0-beta.
|
|
5050
|
+
var VERSION = true ? "3.0.0-beta.62" : "0.0.0-test";
|
|
5049
5051
|
|
|
5050
5052
|
// src/openai-provider.ts
|
|
5051
5053
|
function createOpenAI(options = {}) {
|