@ai-sdk/openai 3.0.127 → 3.0.129

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.129
4
+
5
+ ### Patch Changes
6
+
7
+ - 739e9f6: Restore raw OpenAI custom-tool input deltas for consumers that forward them to Responses API clients. Mark streamed input with `inputEncoding: 'text'` so UI clients can display it progressively without JSON parsing. Preserve the encoding when partial UI messages are saved and resumed. Final provider tool-call inputs remain JSON-encoded.
8
+ - Updated dependencies [739e9f6]
9
+ - @ai-sdk/provider@3.0.19
10
+ - @ai-sdk/provider-utils@4.0.60
11
+
12
+ ## 3.0.128
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [d5e7d82]
17
+ - @ai-sdk/provider-utils@4.0.59
18
+
3
19
  ## 3.0.127
4
20
 
5
21
  ### Patch Changes
package/dist/index.js CHANGED
@@ -6922,12 +6922,8 @@ var OpenAIResponsesLanguageModel = class {
6922
6922
  controller.enqueue({
6923
6923
  type: "tool-input-start",
6924
6924
  id: value.item.call_id,
6925
- toolName
6926
- });
6927
- controller.enqueue({
6928
- type: "tool-input-delta",
6929
- id: value.item.call_id,
6930
- delta: '"'
6925
+ toolName,
6926
+ inputEncoding: "text"
6931
6927
  });
6932
6928
  } else if (value.item.type === "web_search_call") {
6933
6929
  ongoingToolCalls[value.output_index] = {
@@ -7217,11 +7213,6 @@ var OpenAIResponsesLanguageModel = class {
7217
7213
  const toolName = toolNameMapping.toCustomToolName(
7218
7214
  value.item.name
7219
7215
  );
7220
- controller.enqueue({
7221
- type: "tool-input-delta",
7222
- id: value.item.call_id,
7223
- delta: '"'
7224
- });
7225
7216
  controller.enqueue({
7226
7217
  type: "tool-input-end",
7227
7218
  id: value.item.call_id
@@ -7548,7 +7539,7 @@ var OpenAIResponsesLanguageModel = class {
7548
7539
  controller.enqueue({
7549
7540
  type: "tool-input-delta",
7550
7541
  id: toolCall.toolCallId,
7551
- delta: escapeJSONDelta(value.delta)
7542
+ delta: value.delta
7552
7543
  });
7553
7544
  }
7554
7545
  } else if (isResponseApplyPatchCallOperationDiffDeltaChunk(value)) {
@@ -8313,7 +8304,7 @@ var OpenAITranscriptionModel = class {
8313
8304
  };
8314
8305
 
8315
8306
  // src/version.ts
8316
- var VERSION = true ? "3.0.127" : "0.0.0-test";
8307
+ var VERSION = true ? "3.0.129" : "0.0.0-test";
8317
8308
 
8318
8309
  // src/openai-provider.ts
8319
8310
  function createOpenAI(options = {}) {