Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ai-sdk/openai

Package Overview
Dependencies
Maintainers
3
Versions
453
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/openai - npm Package Compare versions

Comparing version
3.0.34
to
3.0.35
+1
-1
package.json
{
"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