@ai-sdk/openai 2.0.0 → 2.0.1
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 +35 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -0
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +35 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +35 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2422,6 +2422,11 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
2422
2422
|
id: import_v414.z.string(),
|
|
2423
2423
|
status: import_v414.z.string().optional()
|
|
2424
2424
|
}),
|
|
2425
|
+
import_v414.z.object({
|
|
2426
|
+
type: import_v414.z.literal("file_search_call"),
|
|
2427
|
+
id: import_v414.z.string(),
|
|
2428
|
+
status: import_v414.z.string().optional()
|
|
2429
|
+
}),
|
|
2425
2430
|
import_v414.z.object({
|
|
2426
2431
|
type: import_v414.z.literal("reasoning"),
|
|
2427
2432
|
id: import_v414.z.string(),
|
|
@@ -2548,6 +2553,26 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
2548
2553
|
});
|
|
2549
2554
|
break;
|
|
2550
2555
|
}
|
|
2556
|
+
case "file_search_call": {
|
|
2557
|
+
content.push({
|
|
2558
|
+
type: "tool-call",
|
|
2559
|
+
toolCallId: part.id,
|
|
2560
|
+
toolName: "file_search",
|
|
2561
|
+
input: "",
|
|
2562
|
+
providerExecuted: true
|
|
2563
|
+
});
|
|
2564
|
+
content.push({
|
|
2565
|
+
type: "tool-result",
|
|
2566
|
+
toolCallId: part.id,
|
|
2567
|
+
toolName: "file_search",
|
|
2568
|
+
result: {
|
|
2569
|
+
type: "file_search_tool_result",
|
|
2570
|
+
status: part.status || "completed"
|
|
2571
|
+
},
|
|
2572
|
+
providerExecuted: true
|
|
2573
|
+
});
|
|
2574
|
+
break;
|
|
2575
|
+
}
|
|
2551
2576
|
}
|
|
2552
2577
|
}
|
|
2553
2578
|
return {
|
|
@@ -2924,6 +2949,11 @@ var responseOutputItemAddedSchema = import_v414.z.object({
|
|
|
2924
2949
|
type: import_v414.z.literal("computer_call"),
|
|
2925
2950
|
id: import_v414.z.string(),
|
|
2926
2951
|
status: import_v414.z.string()
|
|
2952
|
+
}),
|
|
2953
|
+
import_v414.z.object({
|
|
2954
|
+
type: import_v414.z.literal("file_search_call"),
|
|
2955
|
+
id: import_v414.z.string(),
|
|
2956
|
+
status: import_v414.z.string()
|
|
2927
2957
|
})
|
|
2928
2958
|
])
|
|
2929
2959
|
});
|
|
@@ -2957,6 +2987,11 @@ var responseOutputItemDoneSchema = import_v414.z.object({
|
|
|
2957
2987
|
type: import_v414.z.literal("computer_call"),
|
|
2958
2988
|
id: import_v414.z.string(),
|
|
2959
2989
|
status: import_v414.z.literal("completed")
|
|
2990
|
+
}),
|
|
2991
|
+
import_v414.z.object({
|
|
2992
|
+
type: import_v414.z.literal("file_search_call"),
|
|
2993
|
+
id: import_v414.z.string(),
|
|
2994
|
+
status: import_v414.z.literal("completed")
|
|
2960
2995
|
})
|
|
2961
2996
|
])
|
|
2962
2997
|
});
|