@ai-sdk/openai 3.0.94 → 3.0.96
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 +12 -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.js +4 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/responses/convert-to-openai-responses-input.ts +7 -2
package/dist/index.mjs
CHANGED
|
@@ -3284,7 +3284,9 @@ async function convertToOpenAIResponsesInput({
|
|
|
3284
3284
|
if (store && id != null) {
|
|
3285
3285
|
input.push({ type: "item_reference", id });
|
|
3286
3286
|
}
|
|
3287
|
-
|
|
3287
|
+
if (store || !hasShellTool || resolvedToolName !== "shell") {
|
|
3288
|
+
break;
|
|
3289
|
+
}
|
|
3288
3290
|
}
|
|
3289
3291
|
const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || ((_m = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _m : false);
|
|
3290
3292
|
if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
|
|
@@ -3513,7 +3515,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3513
3515
|
continue;
|
|
3514
3516
|
}
|
|
3515
3517
|
processedApprovalIds.add(approvalResponse.approvalId);
|
|
3516
|
-
if (store) {
|
|
3518
|
+
if (store && !hasConversation && !hasPreviousResponseId) {
|
|
3517
3519
|
input.push({
|
|
3518
3520
|
type: "item_reference",
|
|
3519
3521
|
id: approvalResponse.approvalId
|
|
@@ -7476,7 +7478,7 @@ var OpenAITranscriptionModel = class {
|
|
|
7476
7478
|
};
|
|
7477
7479
|
|
|
7478
7480
|
// src/version.ts
|
|
7479
|
-
var VERSION = true ? "3.0.
|
|
7481
|
+
var VERSION = true ? "3.0.96" : "0.0.0-test";
|
|
7480
7482
|
|
|
7481
7483
|
// src/openai-provider.ts
|
|
7482
7484
|
function createOpenAI(options = {}) {
|