@ai-sdk/openai 3.0.128 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.128",
3
+ "version": "3.0.129",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@ai-sdk/provider": "3.0.18",
40
- "@ai-sdk/provider-utils": "4.0.59"
39
+ "@ai-sdk/provider": "3.0.19",
40
+ "@ai-sdk/provider-utils": "4.0.60"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",
@@ -1404,14 +1404,7 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV3 {
1404
1404
  type: 'tool-input-start',
1405
1405
  id: value.item.call_id,
1406
1406
  toolName,
1407
- });
1408
-
1409
- // Custom tool input is a string, so stream its JSON encoding
1410
- // consistently with the final tool call input.
1411
- controller.enqueue({
1412
- type: 'tool-input-delta',
1413
- id: value.item.call_id,
1414
- delta: '"',
1407
+ inputEncoding: 'text',
1415
1408
  });
1416
1409
  } else if (value.item.type === 'web_search_call') {
1417
1410
  ongoingToolCalls[value.output_index] = {
@@ -1748,12 +1741,6 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV3 {
1748
1741
  value.item.name,
1749
1742
  );
1750
1743
 
1751
- controller.enqueue({
1752
- type: 'tool-input-delta',
1753
- id: value.item.call_id,
1754
- delta: '"',
1755
- });
1756
-
1757
1744
  controller.enqueue({
1758
1745
  type: 'tool-input-end',
1759
1746
  id: value.item.call_id,
@@ -2166,7 +2153,7 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV3 {
2166
2153
  controller.enqueue({
2167
2154
  type: 'tool-input-delta',
2168
2155
  id: toolCall.toolCallId,
2169
- delta: escapeJSONDelta(value.delta),
2156
+ delta: value.delta,
2170
2157
  });
2171
2158
  }
2172
2159
  } else if (isResponseApplyPatchCallOperationDiffDeltaChunk(value)) {