@ai-sdk/openai 4.0.40 → 4.0.41

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.40",
3
+ "version": "4.0.41",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -43,8 +43,8 @@
43
43
  "tsup": "^8.5.1",
44
44
  "typescript": "5.8.3",
45
45
  "zod": "3.25.76",
46
- "@ai-sdk/test-server": "2.0.1",
47
- "@vercel/ai-tsconfig": "0.0.0"
46
+ "@vercel/ai-tsconfig": "0.0.0",
47
+ "@ai-sdk/test-server": "2.0.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "zod": "^3.25.76 || ^4.1.8"
@@ -440,7 +440,12 @@ export async function convertToOpenAIResponsesInput({
440
440
  if (store && id != null) {
441
441
  input.push({ type: 'item_reference', id });
442
442
  }
443
- break;
443
+
444
+ // Without response storage, shell calls must be reconstructed
445
+ // together with their matching shell_call_output.
446
+ if (store || !hasShellTool || resolvedToolName !== 'shell') {
447
+ break;
448
+ }
444
449
  }
445
450
 
446
451
  const isProviderDefinedToolCall =