@ai-sdk/openai 3.0.125 → 3.0.126

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.
@@ -7270,6 +7270,11 @@ var OpenAIResponsesLanguageModel = class {
7270
7270
  id: value.item.call_id,
7271
7271
  toolName
7272
7272
  });
7273
+ controller.enqueue({
7274
+ type: "tool-input-delta",
7275
+ id: value.item.call_id,
7276
+ delta: '"'
7277
+ });
7273
7278
  } else if (value.item.type === "web_search_call") {
7274
7279
  ongoingToolCalls[value.output_index] = {
7275
7280
  toolName: toolNameMapping.toCustomToolName(
@@ -7558,6 +7563,11 @@ var OpenAIResponsesLanguageModel = class {
7558
7563
  const toolName = toolNameMapping.toCustomToolName(
7559
7564
  value.item.name
7560
7565
  );
7566
+ controller.enqueue({
7567
+ type: "tool-input-delta",
7568
+ id: value.item.call_id,
7569
+ delta: '"'
7570
+ });
7561
7571
  controller.enqueue({
7562
7572
  type: "tool-input-end",
7563
7573
  id: value.item.call_id
@@ -7884,7 +7894,7 @@ var OpenAIResponsesLanguageModel = class {
7884
7894
  controller.enqueue({
7885
7895
  type: "tool-input-delta",
7886
7896
  id: toolCall.toolCallId,
7887
- delta: value.delta
7897
+ delta: escapeJSONDelta(value.delta)
7888
7898
  });
7889
7899
  }
7890
7900
  } else if (isResponseApplyPatchCallOperationDiffDeltaChunk(value)) {