@ai-sdk/openai 4.0.94 → 4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "4.0.94",
3
+ "version": "4.0.95",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -35,8 +35,8 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@ai-sdk/provider": "4.0.27",
39
- "@ai-sdk/provider-utils": "5.0.60"
38
+ "@ai-sdk/provider": "4.0.28",
39
+ "@ai-sdk/provider-utils": "5.0.61"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@ai-sdk/test-server": "2.0.4",
@@ -1739,14 +1739,7 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV4 {
1739
1739
  type: 'tool-input-start',
1740
1740
  id: value.item.call_id,
1741
1741
  toolName,
1742
- });
1743
-
1744
- // Custom tool input is a string, so stream its JSON encoding
1745
- // consistently with the final tool call input.
1746
- controller.enqueue({
1747
- type: 'tool-input-delta',
1748
- id: value.item.call_id,
1749
- delta: '"',
1742
+ inputEncoding: 'text',
1750
1743
  });
1751
1744
  } else if (value.item.type === 'web_search_call') {
1752
1745
  ongoingToolCalls[value.output_index] = {
@@ -2146,12 +2139,6 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV4 {
2146
2139
  value.item.name,
2147
2140
  );
2148
2141
 
2149
- controller.enqueue({
2150
- type: 'tool-input-delta',
2151
- id: value.item.call_id,
2152
- delta: '"',
2153
- });
2154
-
2155
2142
  controller.enqueue({
2156
2143
  type: 'tool-input-end',
2157
2144
  id: value.item.call_id,
@@ -2649,7 +2636,7 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV4 {
2649
2636
  controller.enqueue({
2650
2637
  type: 'tool-input-delta',
2651
2638
  id: toolCall.toolCallId,
2652
- delta: escapeJSONDelta(value.delta),
2639
+ delta: value.delta,
2653
2640
  });
2654
2641
  }
2655
2642
  } else if (isResponseApplyPatchCallOperationDiffDeltaChunk(value)) {