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