@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.
@@ -7186,6 +7186,11 @@ var OpenAIResponsesLanguageModel = class {
7186
7186
  id: value.item.call_id,
7187
7187
  toolName
7188
7188
  });
7189
+ controller.enqueue({
7190
+ type: "tool-input-delta",
7191
+ id: value.item.call_id,
7192
+ delta: '"'
7193
+ });
7189
7194
  } else if (value.item.type === "web_search_call") {
7190
7195
  ongoingToolCalls[value.output_index] = {
7191
7196
  toolName: toolNameMapping.toCustomToolName(
@@ -7474,6 +7479,11 @@ var OpenAIResponsesLanguageModel = class {
7474
7479
  const toolName = toolNameMapping.toCustomToolName(
7475
7480
  value.item.name
7476
7481
  );
7482
+ controller.enqueue({
7483
+ type: "tool-input-delta",
7484
+ id: value.item.call_id,
7485
+ delta: '"'
7486
+ });
7477
7487
  controller.enqueue({
7478
7488
  type: "tool-input-end",
7479
7489
  id: value.item.call_id
@@ -7800,7 +7810,7 @@ var OpenAIResponsesLanguageModel = class {
7800
7810
  controller.enqueue({
7801
7811
  type: "tool-input-delta",
7802
7812
  id: toolCall.toolCallId,
7803
- delta: value.delta
7813
+ delta: escapeJSONDelta(value.delta)
7804
7814
  });
7805
7815
  }
7806
7816
  } else if (isResponseApplyPatchCallOperationDiffDeltaChunk(value)) {