@ai-sdk/openai
Advanced tools
+1
-1
| { | ||
| "name": "@ai-sdk/openai", | ||
| "version": "3.0.34", | ||
| "version": "3.0.35", | ||
| "license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -431,6 +431,32 @@ import { | ||
| } else { | ||
| warnings.push({ | ||
| type: 'other', | ||
| message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(part)}.`, | ||
| }); | ||
| // No itemId — fall back to encrypted_content if available. | ||
| // The OpenAI Responses API accepts reasoning items without an | ||
| // id when encrypted_content is provided, enabling multi-turn | ||
| // reasoning even when server-side item persistence is not used | ||
| // or when itemId has been stripped from providerOptions. | ||
| const encryptedContent = | ||
| providerOptions?.reasoningEncryptedContent; | ||
| if (encryptedContent != null) { | ||
| const summaryParts: Array<{ | ||
| type: 'summary_text'; | ||
| text: string; | ||
| }> = []; | ||
| if (part.text.length > 0) { | ||
| summaryParts.push({ | ||
| type: 'summary_text', | ||
| text: part.text, | ||
| }); | ||
| } | ||
| input.push({ | ||
| type: 'reasoning', | ||
| encrypted_content: encryptedContent, | ||
| summary: summaryParts, | ||
| }); | ||
| } else { | ||
| warnings.push({ | ||
| type: 'other', | ||
| message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(part)}.`, | ||
| }); | ||
| } | ||
| } | ||
@@ -437,0 +463,0 @@ break; |
@@ -384,3 +384,3 @@ import { JSONSchema7 } from '@ai-sdk/provider'; | ||
| type: 'reasoning'; | ||
| id: string; | ||
| id?: string; | ||
| encrypted_content?: string | null; | ||
@@ -387,0 +387,0 @@ summary: Array<{ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
3273668
0.32%35564
0.25%39
2.63%