🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@ai-sdk/openai

Package Overview
Dependencies
Maintainers
3
Versions
576
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.72
to
3.0.73
+3
-3
package.json
{
"name": "@ai-sdk/openai",
"version": "3.0.72",
"version": "3.0.73",
"license": "Apache-2.0",

@@ -39,4 +39,4 @@ "sideEffects": false,

"dependencies": {
"@ai-sdk/provider-utils": "4.0.30",
"@ai-sdk/provider": "3.0.10"
"@ai-sdk/provider": "3.0.10",
"@ai-sdk/provider-utils": "4.0.30"
},

@@ -43,0 +43,0 @@ "devDependencies": {

@@ -284,6 +284,25 @@ import {

if (store && id != null) {
if (hasPreviousResponseId) {
break;
}
// When chaining with a previous response id, items already part
// of that response chain must not be resent.
if (hasPreviousResponseId && store && id != null) {
break;
}
// Provider-defined tool calls (local_shell, shell, apply_patch,
// and custom tools) are stored by the API and can be sent as an
// `item_reference` to reduce payload size. Plain client-executed
// function calls must NOT be: the matching `function_call_output`
// can only reference the call by `call_id` (`call_...`), which
// the API cannot reconcile with an item id (`fc_...`) or an
// `item_reference`. Sending either breaks call/output pairing and
// makes follow-up requests fail with "No tool call found for
// function call output with call_id", most visibly with parallel
// tool calls across multiple steps.
const isProviderDefinedToolCall =
(hasLocalShellTool && resolvedToolName === 'local_shell') ||
(hasShellTool && resolvedToolName === 'shell') ||
(hasApplyPatchTool && resolvedToolName === 'apply_patch') ||
(customProviderToolNames?.has(resolvedToolName) ?? false);
if (store && id != null && isProviderDefinedToolCall) {
input.push({ type: 'item_reference', id });

@@ -370,3 +389,2 @@ break;

arguments: serializeToolCallArguments(part.input),
id,
...(namespace != null && { namespace }),

@@ -373,0 +391,0 @@ });

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