@ai-sdk/openai 3.0.86 → 3.0.87

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/dist/index.mjs CHANGED
@@ -3079,7 +3079,7 @@ async function convertToOpenAIResponsesInput({
3079
3079
  hasApplyPatchTool = false,
3080
3080
  customProviderToolNames
3081
3081
  }) {
3082
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
3082
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
3083
3083
  let input = [];
3084
3084
  const warnings = [];
3085
3085
  const processedApprovalIds = /* @__PURE__ */ new Set();
@@ -3356,7 +3356,7 @@ async function convertToOpenAIResponsesInput({
3356
3356
  part.toolName
3357
3357
  );
3358
3358
  if (resolvedResultToolName === "tool_search") {
3359
- const itemId = (_p = (_o = (_n = part.providerOptions) == null ? void 0 : _n[providerOptionsName]) == null ? void 0 : _o.itemId) != null ? _p : part.toolCallId;
3359
+ const itemId = (_s = (_r = (_o = (_n = part.providerOptions) == null ? void 0 : _n[providerOptionsName]) == null ? void 0 : _o.itemId) != null ? _r : (_q = (_p = part.providerMetadata) == null ? void 0 : _p[providerOptionsName]) == null ? void 0 : _q.itemId) != null ? _s : part.toolCallId;
3360
3360
  if (store) {
3361
3361
  input.push({ type: "item_reference", id: itemId });
3362
3362
  } else if (part.output.type === "json") {
@@ -3397,7 +3397,7 @@ async function convertToOpenAIResponsesInput({
3397
3397
  break;
3398
3398
  }
3399
3399
  if (store) {
3400
- const itemId = (_s = (_r = (_q = part.providerOptions) == null ? void 0 : _q[providerOptionsName]) == null ? void 0 : _r.itemId) != null ? _s : part.toolCallId;
3400
+ const itemId = (_v = (_u = (_t = part.providerOptions) == null ? void 0 : _t[providerOptionsName]) == null ? void 0 : _u.itemId) != null ? _v : part.toolCallId;
3401
3401
  input.push({ type: "item_reference", id: itemId });
3402
3402
  } else {
3403
3403
  warnings.push({
@@ -3507,7 +3507,7 @@ async function convertToOpenAIResponsesInput({
3507
3507
  }
3508
3508
  const output = part.output;
3509
3509
  if (output.type === "execution-denied") {
3510
- const approvalId = (_u = (_t = output.providerOptions) == null ? void 0 : _t.openai) == null ? void 0 : _u.approvalId;
3510
+ const approvalId = (_x = (_w = output.providerOptions) == null ? void 0 : _w.openai) == null ? void 0 : _x.approvalId;
3511
3511
  if (approvalId) {
3512
3512
  continue;
3513
3513
  }
@@ -3581,7 +3581,7 @@ async function convertToOpenAIResponsesInput({
3581
3581
  outputValue = output.value;
3582
3582
  break;
3583
3583
  case "execution-denied":
3584
- outputValue = (_v = output.reason) != null ? _v : "Tool call execution denied.";
3584
+ outputValue = (_y = output.reason) != null ? _y : "Tool call execution denied.";
3585
3585
  break;
3586
3586
  case "json":
3587
3587
  case "error-json":
@@ -3664,7 +3664,7 @@ async function convertToOpenAIResponsesInput({
3664
3664
  contentValue = output.value;
3665
3665
  break;
3666
3666
  case "execution-denied":
3667
- contentValue = (_w = output.reason) != null ? _w : "Tool call execution denied.";
3667
+ contentValue = (_z = output.reason) != null ? _z : "Tool call execution denied.";
3668
3668
  break;
3669
3669
  case "json":
3670
3670
  case "error-json":
@@ -7451,7 +7451,7 @@ var OpenAITranscriptionModel = class {
7451
7451
  };
7452
7452
 
7453
7453
  // src/version.ts
7454
- var VERSION = true ? "3.0.86" : "0.0.0-test";
7454
+ var VERSION = true ? "3.0.87" : "0.0.0-test";
7455
7455
 
7456
7456
  // src/openai-provider.ts
7457
7457
  function createOpenAI(options = {}) {